Class Localizer
java.lang.Object
org.apache.jasper.compiler.Localizer
Class responsible for converting error codes to corresponding localized error messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMessage(String errCode) Returns the localized error message corresponding to the given error code.static StringgetMessage(String errCode, Object... args) Returns the localized error message corresponding to the given error code.
-
Constructor Details
-
Localizer
public Localizer()Default constructor.
-
-
Method Details
-
getMessage
Returns the localized error message corresponding to the given error code. If the given error code is not defined in the resource bundle for localized error messages, it is used as the error message.- Parameters:
errCode- Error code to localize- Returns:
- Localized error message
-
getMessage
Returns the localized error message corresponding to the given error code. If the given error code is not defined in the resource bundle for localized error messages, it is used as the error message.- Parameters:
errCode- Error code to localizeargs- Arguments for parametric replacement- Returns:
- Localized error message
-