Exception: 1.classnotfoundexception
Exception: 1.classnotfoundexception
ClassNotFoundException
public class ClassNotFoundException
extends Exception
Thrown when an application tries to load in a class through its string name
using:
As of release 1.4, this exception has been retrofitted to conform to the general
purpose exception-chaining mechanism. The "optional exception that was
raised while loading the class" that may be provided at construction time and
accessed via the getException() method is now known as the cause, and may
be accessed via the Throwable.getCause() method, as well as the
aforementioned "legacy method.
2.IllegalAccessException
public class IllegalAccessException
extends Exception
An IllegalAccessException is thrown when an application tries to reflectively
create an instance (other than an array), set or get a field, or invoke a method,
but the currently executing method does not have access to the definition of
the specified class, field, method or constructor.
3.InstantiationException
4.NullPointerException
6.RuntimeException
7.StringIndexOutOfBoundsException
8.AccessControlException
The reason to deny access can vary. For example, the requested permission
might be of an incorrect type, contain an invalid value, or request access that
is not allowed according to the security policy. Such information should be
given whenever possible at the time the exception is thrown.
9.GeneralSecurityException
public class GeneralSecurityException
extends Exception
The GeneralSecurityException class is a generic security exception class that
provides type safety for all the security-related exception classes that extend
from it.
10.KeyManagementException
• KeyIDConflictException
• KeyAuthorizationFailureException
• ExpiredKeyException
11.PrivilegedActionException
public class PrivilegedActionException
extends Exception
This exception is thrown by doPrivileged(PrivilegedExceptionAction) and
doPrivileged(PrivilegedExceptionAction, AccessControlContext context) to
indicate that the action being performed threw a checked exception. The
exception thrown by the action can be obtained by calling the getException
method. In effect, an PrivilegedActionException is a "wrapper" for an
exception thrown by a privileged action.
As of release 1.4, this exception has been retrofitted to conform to the general
purpose exception-chaining mechanism. The "exception thrown by the
privileged computation" that is provided at construction time and accessed via
the getException() method is now known as the cause, and may be accessed
via the Throwable.getCause() method, as well as the aforementioned "legacy
method."
12. TooManyListenersException
extends UnsupportedOperationException
14. IllegalComponentStateException
15. ParseException
public class ParseException
extends Exception
Signals that an error has been reached unexpectedly while parsing.
16. AccessException
17. MarshalException
As of release 1.4, this exception has been retrofitted to conform to the general
purpose exception-chaining mechanism. The "wrapped remote exception"
that may be provided at construction time and accessed via the public detail
field is now known as the cause, and may be accessed via the
Throwable.getCause() method, as well as the aforementioned "legacy field."
19. ServerError
extends RemoteException
20. StubNotFoundException
extends RemoteException
21. UnexpectedException
extends RemoteException
extends RemoteException
23. UnmarshalException
extends RemoteException
24. IntrospectionException
extends Exception
Thrown when an exception happens during Introspection.
Typical causes include not being able to map a string class name to a Class
object, not being able to resolve a string method name, or specifying a
method name that has the wrong type signature for its intended use.
25. EOFException
extends IOException
Signals that an end of file or end of stream has been reached unexpectedly
during input.
This exception is mainly used by data input streams to signal end of stream.
Note that many other input operations return a special value on end of stream
rather than throwing an exception.
26. InvalidClassException
extends ObjectStreamException
Thrown when the Serialization runtime detects one of the following problems
with a Class.
• The serial version of the class does not match that of the class
descriptor read from the stream
27. InvalidObjectException
extends ObjectStreamException
Indicates that one or more deserialized objects failed validation tests. The
argument should provide the reason for the failure.
28. IOException
extends Exception
Signals that an I/O exception of some sort has occurred. This class is the
general class of exceptions produced by failed or interrupted I/O operations.
29. NotSerializableException
extends ObjectStreamException
30. StreamCorruptedException
extends ObjectStreamException
Thrown when control information that was read from an object stream violates
internal consistency checks.
31. UTFDataFormatException
extends IOException
Signals that a malformed UTF-8 string has been read in a data input stream
or by any class that implements the data input interface. See the writeUTF
method for the format in which UTF-8 strings are read and written.
32. ProfileDataException
extends RuntimeException
33. BindException
extends SocketException
extends SocketException
35. NoRouteToHostException
extends SocketException
36. UnknownServiceException
extends IOException
37. URISyntaxException
extends Exception
38. SocketTimeoutException
extends InterruptedIOException
extends IOException
40. ProtocolException
extends IOException