java.lang
public class: Exception [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
All Implemented Interfaces:
Serializable
{@code Exception} is the superclass of all classes that represent recoverable
exceptions. When exceptions are thrown, they may be caught by application
code.
| Constructor: |
public Exception() {
super();
}
Constructs a new {@code Exception} that includes the current stack trace. |
public Exception(String detailMessage) {
super(detailMessage);
}
Constructs a new {@code Exception} with the current stack trace and the
specified detail message. Parameters:
detailMessage -
the detail message for this exception.
|
public Exception(Throwable throwable) {
super(throwable);
}
Constructs a new {@code Exception} with the current stack trace and the
specified cause. Parameters:
throwable -
the cause of this exception.
|
public Exception(String detailMessage,
Throwable throwable) {
super(detailMessage, throwable);
}
Constructs a new {@code Exception} with the current stack trace, the
specified detail message and the specified cause. Parameters:
detailMessage -
the detail message for this exception.
throwable -
the cause of this exception.
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |