Package org.forgerock.i18n
Class LocalizedIllegalArgumentException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- java.lang.IllegalArgumentException
 - 
- org.forgerock.i18n.LocalizedIllegalArgumentException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,LocalizableException
- Direct Known Subclasses:
 ConflictingSchemaElementException,UnknownSchemaElementException
public class LocalizedIllegalArgumentException extends IllegalArgumentException implements LocalizableException
Thrown to indicate that a method has been passed an illegal or inappropriate argument.A
LocalizedIllegalArgumentExceptioncontains a localized error message which may be used to provide the user with detailed diagnosis information. The localized message can be retrieved using thegetMessageObject()method.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description LocalizedIllegalArgumentException(Throwable cause)Creates a new localized illegal argument exception with the provided cause.LocalizedIllegalArgumentException(LocalizableMessage message)Creates a new localized illegal argument exception with the provided message.LocalizedIllegalArgumentException(LocalizableMessage message, Throwable cause)Creates a new localized illegal argument exception with the provided message and cause. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessagegetMessageObject()Returns the localizable message that explains the problem that occurred.- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
LocalizedIllegalArgumentException
public LocalizedIllegalArgumentException(LocalizableMessage message)
Creates a new localized illegal argument exception with the provided message.- Parameters:
 message- The message that explains the problem that occurred.
 
- 
LocalizedIllegalArgumentException
public LocalizedIllegalArgumentException(Throwable cause)
Creates a new localized illegal argument exception with the provided cause.- Parameters:
 cause- The cause which may be later retrieved by theThrowable.getCause()method.
 
- 
LocalizedIllegalArgumentException
public LocalizedIllegalArgumentException(LocalizableMessage message, Throwable cause)
Creates a new localized illegal argument 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. Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
 
 - 
 
- 
Method Detail
- 
getMessageObject
public final LocalizableMessage getMessageObject()
Description copied from interface:LocalizableExceptionReturns the localizable message that explains the problem that occurred.- Specified by:
 getMessageObjectin interfaceLocalizableException- Returns:
 - The localizable message that explains the problem that occurred.
 
 
 - 
 
 -