java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
com.aoapps.lang.text.LocalizedParseException
- All Implemented Interfaces:
LocalizedException,Serializable
Extends
ParseException to provide exceptions in user locale error messages.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedParseException(int errorOffset, Resources resources, String key) LocalizedParseException(int errorOffset, Resources resources, String key, Serializable... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal Serializable[]getArgs()final StringgetKey()final ResourcesGets the resources used to generate the message ornullwhen the message is not localized and uses a default.Methods inherited from class java.text.ParseException
getErrorOffsetMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
resources
-
key
-
args
-
-
Constructor Details
-
LocalizedParseException
-
LocalizedParseException
public LocalizedParseException(int errorOffset, Resources resources, String key, Serializable... args)
-
-
Method Details
-
getLocalizedMessage
- Specified by:
getLocalizedMessagein interfaceLocalizedException- Overrides:
getLocalizedMessagein classThrowable
-
getResources
Description copied from interface:LocalizedExceptionGets the resources used to generate the message ornullwhen the message is not localized and uses a default.- Specified by:
getResourcesin interfaceLocalizedException
-
getKey
- Specified by:
getKeyin interfaceLocalizedException
-
getArgs
- Specified by:
getArgsin interfaceLocalizedException- Returns:
- No defensive copy
-
