Package org.forgerock.i18n
Class LocalizedSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
org.forgerock.i18n.LocalizedSecurityException
- All Implemented Interfaces:
Serializable
,LocalizableException
A localized
SecurityException
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new localized security exception with the provided cause.Creates a new localized security exception with the provided message.LocalizedSecurityException
(LocalizableMessage message, Throwable cause) Creates a new localized security exception with the provided message and cause. -
Method Summary
Modifier and TypeMethodDescriptionPrevent costly stack traces from being created because they are not useful for this type of exception.final LocalizableMessage
Returns the localizable message that explains the problem that occurred.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LocalizedSecurityException
Creates a new localized security exception with the provided message.- Parameters:
message
- The message that explains the problem that occurred.
-
LocalizedSecurityException
Creates a new localized security exception with the provided cause.- Parameters:
cause
- The cause which may be later retrieved by theThrowable.getCause()
method.
-
LocalizedSecurityException
Creates a new localized security exception with the provided message and cause.- Parameters:
message
- The message that explains the problem that occurred.cause
- The cause which may be later retrieved by theThrowable.getCause()
method. Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-
-
Method Details
-
getMessageObject
Description copied from interface:LocalizableException
Returns the localizable message that explains the problem that occurred.- Specified by:
getMessageObject
in interfaceLocalizableException
- Returns:
- The localizable message that explains the problem that occurred.
-
fillInStackTrace
Prevent costly stack traces from being created because they are not useful for this type of exception.- Overrides:
fillInStackTrace
in classThrowable
-