Java Reference
In-Depth Information
that the code has tried to store an incorrect object
type in an array of objects.
ClassCastException
The ClassCastException is thrown to indicate
that the code has tried to convert the class into a
subclass that it is not an instance of.
ClassNotFoundException
The ClassNotFoundException is thrown to
indicate that the code has used the forName()
method to try to load a class that could not be
f ound.
Exception
The Exception class and all its subclasses
indicate conditions that might be watched by an
a pplication.
IllegalAccessException
The IllegalAccessException indicates that
an application tried to load in a class, but the
currently executing method did not have access to
the definition of the specified class, because the
c lass was not public and was in another package.
IllegalArgumentException
The IllegalArgumentException is thrown to
indicate that a method has passed an illegal
p arameter.
IllegalMonitorStateException
The IllegalMonitorStaeException is thrown
to indicate that a thread has attempted to wait on
an object's monitor or to notify other threads
waiting on an object's monitor without owning the
s pecified monitor.
IllegalStateException
The IllegalStateException is an MIDP
extension to CLDC and is available only in MIDP-
conforming Java Virtual Machines. It indicates that
a method has been invoked at an illegal or
inappropriate time. In other words, the Java
environment or Java application is not in an
a ppropriate state for the requested operation.
IllegalThreadStateException
The IllegalThreadStateException is thrown
to indicate that a method has been invoked on a
t hread that is not in an appropriate state.
IndexOutOfBoundsException
The IndexOutOfBoundsException is thrown in
order to indicate that an index of some sort (such
as to an array, to a string, or to a vector) is out of
r ange.
InstantiationException
The InstantiationException is thrown to
indicate that an application has tried to create an
instance using the newInstance() method for an
i nstance of an interface or abstract class.
InterrruptedException
The InterruptedException is thrown to
indicate when a thread is interrupted while waiting,
sleeping, or otherwise pausing for a long period of
t ime.
NegativeArraySizeException
The NegativeArraySizeException is thrown
to indicate that the application has tried to create
an array of negative size.
NullPointerException
The NullPointerException is thrown to
indicate that an application tried to use null in a
c ase where an Object is required.
NumberFormatException
The NumberFormatException is thrown to
i ndicate that the application has attempted to
Search WWH ::




Custom Search