public class ErrorMessage extends Object
| Constructor and Description |
|---|
ErrorMessage() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(String msgKey,
Object... args)
Produces a formatted error message using the supplied substitution arguments and
the current locale.
|
static String |
get(String msgKey)
Retrieves a simple message according to the current locale.
|
public static String format(String msgKey, Object... args)
msgKey - The key identifying the message template; it should be a member of
ErrorMessageKeys.args - An array of arguments to be formatted and substituted in the content of
the message.MissingResourceException is thrown.public static String get(String msgKey)
msgKey - The key identifying the message; it should be a member of
ErrorMessageKeys.MissingResourceException is thrown.Copyright © 2024 Open Geospatial Consortium. All rights reserved.