java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.aoapps.servlet.LocalizedServletException
- All Implemented Interfaces:
LocalizedException
,Serializable
Extends
ServletException
to provide exceptions with user locale error messages.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLocalizedServletException
(Resources resources, String key) LocalizedServletException
(Resources resources, String key, Serializable... args) LocalizedServletException
(Throwable cause, Resources resources, String key) LocalizedServletException
(Throwable cause, Resources resources, String key, Serializable... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal Serializable[]
getArgs()
final String
getKey()
final Resources
Methods inherited from class javax.servlet.ServletException
getRootCause
Methods 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
-
LocalizedServletException
-
LocalizedServletException
-
LocalizedServletException
-
LocalizedServletException
public LocalizedServletException(Throwable cause, Resources resources, String key, Serializable... args)
-
-
Method Details
-
getLocalizedMessage
- Specified by:
getLocalizedMessage
in interfaceLocalizedException
- Overrides:
getLocalizedMessage
in classThrowable
-
getResources
- Specified by:
getResources
in interfaceLocalizedException
-
getKey
- Specified by:
getKey
in interfaceLocalizedException
-
getArgs
- Specified by:
getArgs
in interfaceLocalizedException
- Returns:
- No defensive copy
-