Java Doc for IllegalArgumentException.java in » 6.0-JDK-Core » lang » java » lang » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Thrown to indicate that a method has been passed an illegal or
inappropriate argument.
author: unascribed version: 1.30, 05/05/07 See Also:java.lang.Thread.setPriority(int) since: JDK1.0
Note that the detail message associated with cause is
not automatically incorporated in this exception's detail
message.
Parameters: message - the detail message (which is saved for later retrievalby the Throwable.getMessage method). Parameters: cause - the cause (which is saved for later retrieval by theThrowable.getCause method).
public
IllegalArgumentException(Throwable cause) Constructs a new exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
This constructor is useful for exceptions that are little more than
wrappers for other throwables (for example,
java.security.PrivilegedActionException ).
Parameters: cause - the cause (which is saved for later retrieval by theThrowable.getCause method).
Constructs a new exception with the specified detail message and
cause.
Note that the detail message associated with cause is
not automatically incorporated in this exception's detail
message.
Parameters: message - the detail message (which is saved for later retrievalby the Throwable.getMessage method). Parameters: cause - the cause (which is saved for later retrieval by theThrowable.getCause method). (A null valueis permitted, and indicates that the cause is nonexistent orunknown.) since: 1.5
Constructs a new exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
This constructor is useful for exceptions that are little more than
wrappers for other throwables (for example,
java.security.PrivilegedActionException ).
Parameters: cause - the cause (which is saved for later retrieval by theThrowable.getCause method). (A null value ispermitted, and indicates that the cause is nonexistent orunknown.) since: 1.5