Known Direct Subclasses
AppletIllegalArgumentException |
An applet security exception. |
IllegalFormatException |
Unchecked exception thrown when a format string contains an illegal syntax
or a format specifier that is incompatible with the given arguments. |
IllegalThreadStateException |
Thrown to indicate that a thread is not in an appropriate state
for the requested operation. |
InvalidKeyException |
This runtime exception is thrown to indicate that a method parameter which was expected to be
an item name of a composite data or a row index of a tabular data is not valid. |
InvalidOpenTypeException |
This runtime exception is thrown to indicate that the open type of an open data value
is not the one expected. |
InvalidParameterException |
This exception, designed for use by the JCA/JCE engine classes,
is thrown when an invalid parameter is passed
to a method. |
KeyAlreadyExistsException |
This runtime exception is thrown to indicate that the index of a row to be added to a tabular data instance
is already used to refer to another row in this tabular data instance. |
NumberFormatException |
Thrown to indicate that the application has attempted to convert
a string to one of the numeric types, but that the string does not
have the appropriate format. |
PatternSyntaxException |
Unchecked exception thrown to indicate a syntax error in a
regular-expression pattern. |
|
Known Indirect Subclasses
DuplicateFormatFlagsException,
FormatFlagsConversionMismatchException,
IllegalFormatCodePointException,
IllegalFormatConversionException,
IllegalFormatFlagsException,
IllegalFormatPrecisionException,
IllegalFormatWidthException,
MissingFormatArgumentException,
MissingFormatWidthException,
UnknownFormatConversionException,
UnknownFormatFlagsException
|
Class Overview
Thrown to indicate that a method has been passed an illegal or
inappropriate argument.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Throwable
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
IllegalArgumentException
()
Constructs an IllegalArgumentException
with no
detail message.
public
IllegalArgumentException
(String s)
Constructs an IllegalArgumentException
with the
specified detail message.
public
IllegalArgumentException
(String message, Throwable cause)
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 retrieval
by the getMessage() method). |
cause
| the cause (which is saved for later retrieval by the
getCause() method). (A null value
is permitted, and indicates that the cause is nonexistent or
unknown.) |
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, PrivilegedActionException
).
Parameters
cause
| the cause (which is saved for later retrieval by the
getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.) |