ExceptionNameExceptionSynopsis
DescriptionThe Exception class is the superclass of all of the standard exception classes that can be thrown in Java. The subclasses of Exception represent exceptional conditions a normal Java program may want to handle. Any explicitly thrown object in a Java program should be an instance of a subclass of Exception. Many of the standard exceptions are also subclasses of RuntimeException. Run-time exceptions represent run-time conditions that can occur generally in any Java method, so a method is not required to declare that it throws any of the run-time exceptions. However, if a method can throw any of the other standard exceptions, it must declare them in its throws clause. A Java program should try to handle all of the standard exception classes, since they represent routine abnormal conditions that should be anticipated and caught to prevent program termination. Class Summary
public class java.lang.Exception extends java.lang.Throwable { // Constructors public Exception(); public Exception(String s); } ConstructorsExceptionpublic Exception()
public Exception(String s)
Inherited Methods
See AlsoClassNotFoundException, CloneNotSupportedException, DataFormatException, FormatException, IllegalAccessException, InstantiationException, InvocationTargetException, InterruptedException, NoSuchMethodException, RuntimeException, Throwable, TooManyListenersException |
|