Package org.opengis.cite.iso19136
Class ErrorMessage
java.lang.Object
org.opengis.cite.iso19136.ErrorMessage
Utility class for retrieving and formatting localized error messages that describe
failed assertions.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ErrorMessage
public ErrorMessage()
-
-
Method Details
-
format
Produces a formatted error message using the supplied substitution arguments and the current locale. The arguments should reflect the order of the placeholders in the message template.- Parameters:
msgKey
- The key identifying the message template; it should be a member ofErrorMessageKeys
.args
- An array of arguments to be formatted and substituted in the content of the message.- Returns:
- A String containing the message content. If no message is found for the
given key, a
MissingResourceException
is thrown.
-
get
Retrieves a simple message according to the current locale.- Parameters:
msgKey
- The key identifying the message; it should be a member ofErrorMessageKeys
.- Returns:
- A String containing the message content. If no message is found for the
given key, a
MissingResourceException
is thrown.
-