java.lang
Class IllegalArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalFormatException, IllegalThreadStateException, NumberFormatException

public class IllegalArgumentException
extends RuntimeException

This runtime exception is thrown when a method is invoked with an argument which it can not reasonably deal with.

See Also:
Serialized Form

Constructor Summary
IllegalArgumentException()
          Constructs a new instance of this class with its walkback filled in.
IllegalArgumentException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
IllegalArgumentException(java.lang.String message, Throwable cause)
          Constructs a new instance with a message and cause.
IllegalArgumentException(Throwable cause)
          Constructs a new instance with a cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalArgumentException

public IllegalArgumentException()
Constructs a new instance of this class with its walkback filled in.


IllegalArgumentException

public IllegalArgumentException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.

IllegalArgumentException

public IllegalArgumentException(java.lang.String message,
                                Throwable cause)

Constructs a new instance with a message and cause.

Parameters:
message - The message to assign to this exception.
cause - The optional cause of this exception; may be null.
Since:
1.5

IllegalArgumentException

public IllegalArgumentException(Throwable cause)

Constructs a new instance with a cause.

Parameters:
cause - The optional cause of this exception; may be null.
Since:
1.5