THOUSANDS OF FREE BLOGGER TEMPLATES

Friday, May 14, 2010

JAVA EXCEPTIONS

1. Class ClassNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.ClassNotFoundException
public class ClassNotFoundException
extends Exception
Thrown when an application tries to load in a class through its string name using:
• The forName method in class Class.
• The findSystemClass method in class ClassLoader .
• The loadClass method in class ClassLoader.
but no definition for the class with the specified name could be found.
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. Class AWTException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.awt.AWTException
public class AWTException
extends Exception
Signals that an Absract Window Toolkit exception has occurred.


3. Class DataFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.zip.DataFormatException
public class DataFormatException
extends Exception
Signals that a data format error has occurred.

4.Class CertificateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.cert.CertificateException
public class CertificateException
extends GeneralSecurityException
This exception indicates one of a variety of certificate problems.

5.Class InvocationTargetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.reflect.InvocationTargetException
public class InvocationTargetException
extends Exception

InvocationTargetException is a checked exception that wraps an
exception thrown by an invoked method or constructor.
As of release 1.4, this exception has been retrofitted to conform to
the general purpose exception-chaining mechanism. The "target
exception" that is provided at construction time and accessed via
the getTargetException() method is now known as the cause,
and may be accessed via the Throwable.getCause() method, as
well as the aforementioned "legacy method."

6. Class LastOwnerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.acl.LastOwnerException
public class LastOwnerException
extends Exception
This is an exception that is thrown whenever an attempt is made
to delete the last owner of an Access Control List.

7. Class LineUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.sound.sampled.LineUnavailableException
public class LineUnavailableException
extends Exception
A LineUnavailableException is an exception indicating that a line
cannot be opened because it is unavailable. This situation arises most
commonly when a requested line is already in use by another application.

8.Class MimeTypeParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.awt.datatransfer.MimeTypeParseException
public class MimeTypeParseException
extends Exception
A class to encapsulate MimeType parsing related exceptions

9. Class NoSuchElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException

public class NoSuchElementException
extends RuntimeException
Thrown by the nextElement method of an Enumeration to
indicate that there are no more elements in the enumeration.

10.Class NumberFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.lang.NumberFormatException
public class NumberFormatException
extends IllegalArgumentException

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.

0 comments: