java.lang Exceptions/Errors

AbstractMethodErrorThrown when an application tries to call an abstract method.

ArithmeticExceptionThrown when an exceptional arithmetic condition has occurred.

ArrayIndexOutOfBoundsExceptionThrown to indicate that an array has been accessed with an illegal index.

ArrayStoreExceptionThrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.

AssertionErrorThrown to indicate that an assertion has failed.

BootstrapMethodErrorThrown to indicate that an invoke dynamic instruction or a dynamic constant failed to resolve its bootstrap method and arguments, or invoke dynamic instruction the bootstrap method has failed to provide a call site with a target of the correct method type, or for a dynamic constant, the bootstrap method has failed to provide a constant value of the required type.

ClassCastExceptionThrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.

ClassCircularityErrorThrown when the Java Virtual Machine detects a circularity in the superclass hierarchy of a class is loaded.

ClassFormatErrorThrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.

ClassNotFoundExceptionThrown 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.

CloneNotSupportedExceptionThrown to indicate that the clone method in class Object has been called to clone an object, but the object's class does not implement the Cloneable interface.

ErrorAn Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.

ExceptionThe class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.

ExceptionInInitializerErrorSignals that an unexpected exception has occurred in a static initializer.

IllegalAccessErrorThrown if an application attempts to access or modify a field, or to call a method that it does not have access to.

IllegalAccessExceptionAn 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.

IllegalArgumentExceptionThrown to indicate that a method has been passed an illegal or inappropriate argument.

IllegalCallerExceptionThrown to indicate that a method has been called by an inappropriate caller.

IllegalMonitorStateExceptionThrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object monitor without owning the specified monitor.

IllegalStateExceptionSignals that a method has been invoked at an illegal or inappropriate time.

No comments:

Post a Comment