Class 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 LocalizedIllegalArgumentException contains a localized error message which may be used to provide the user with detailed diagnosis information. The localized message can be retrieved using the getMessageObject() method.

See Also:
  • Constructor Details

    • 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 the Throwable.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 the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
  • Method Details

    • getMessageObject

      public final LocalizableMessage getMessageObject()
      Description copied from interface: LocalizableException
      Returns the localizable message that explains the problem that occurred.
      Specified by:
      getMessageObject in interface LocalizableException
      Returns:
      The localizable message that explains the problem that occurred.
    • fillInStackTrace

      public Throwable fillInStackTrace()
      Prevent costly stack traces from being created because they are not useful for this type of exception.
      Overrides:
      fillInStackTrace in class Throwable