java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
com.aoapps.lang.LocalizedUnsupportedOperationException
- All Implemented Interfaces:
LocalizedException
,Serializable
public class LocalizedUnsupportedOperationException
extends UnsupportedOperationException
implements LocalizedException
Extends
UnsupportedOperationException
to provide exceptions in user locale error messages.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLocalizedUnsupportedOperationException
(Resources resources, String key) LocalizedUnsupportedOperationException
(Resources resources, String key, Serializable... args) LocalizedUnsupportedOperationException
(Throwable cause, Resources resources, String key) LocalizedUnsupportedOperationException
(Throwable cause, Resources resources, String key, Serializable... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal Serializable[]
getArgs()
final String
getKey()
final Resources
Gets the resources used to generate the message ornull
when the message is not localized and uses a default.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
-
LocalizedUnsupportedOperationException
-
LocalizedUnsupportedOperationException
public LocalizedUnsupportedOperationException(Resources resources, String key, Serializable... args) -
LocalizedUnsupportedOperationException
-
LocalizedUnsupportedOperationException
public LocalizedUnsupportedOperationException(Throwable cause, Resources resources, String key, Serializable... args)
-
-
Method Details
-
getLocalizedMessage
- Specified by:
getLocalizedMessage
in interfaceLocalizedException
- Overrides:
getLocalizedMessage
in classThrowable
-
getResources
Description copied from interface:LocalizedException
Gets the resources used to generate the message ornull
when the message is not localized and uses a default.- Specified by:
getResources
in interfaceLocalizedException
-
getKey
- Specified by:
getKey
in interfaceLocalizedException
-
getArgs
- Specified by:
getArgs
in interfaceLocalizedException
- Returns:
- No defensive copy
-