Exception: java.lang.IllegalArgumentException
- public exception IllegalArgumentException
- extends RuntimeException
Thrown to indicate that a method has been passed an illegal or
inappropriate argument.
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IllegalArgumentException
Methods
-
IllegalArgumentExceptiontop
public IllegalArgumentException()Constructs anIllegalArgumentExceptionwith no detail message. -
IllegalArgumentExceptiontop
public IllegalArgumentException(String s)Constructs anIllegalArgumentExceptionwith the specified detail message. -
IllegalArgumentExceptiontop
Constructs a new exception with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message. -
IllegalArgumentExceptiontop
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).
