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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedServletException(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 StringgetKey()final ResourcesMethods inherited from class javax.servlet.ServletException
getRootCauseMethods 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:
getLocalizedMessagein interfaceLocalizedException- Overrides:
getLocalizedMessagein classThrowable
-
getResources
- Specified by:
getResourcesin interfaceLocalizedException
-
getKey
- Specified by:
getKeyin interfaceLocalizedException
-
getArgs
- Specified by:
getArgsin interfaceLocalizedException- Returns:
- No defensive copy
-
