java.lang
Class IllegalArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- Direct Known Subclasses:
- NumberFormatException
public class IllegalArgumentException extends RuntimeException
Thrown when a method is invoked with an argument which it can not reasonably deal with.
-
-
Constructor Summary
Constructors Constructor and Description IllegalArgumentException()
Constructs a newIllegalArgumentException
that includes the current stack trace.IllegalArgumentException(String detailMessage)
Constructs a newIllegalArgumentException
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalArgumentException
public IllegalArgumentException()
Constructs a newIllegalArgumentException
that includes the current stack trace.
-
IllegalArgumentException
public IllegalArgumentException(String detailMessage)
Constructs a newIllegalArgumentException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-