Exception (Java SE 12 & JDK 12 )
-
-
Constructor Summary
Constructors Modifier Constructor Description Exception()Constructs a new exception with
nullas its detail message.Exception(String message)Constructs a new exception with the specified detail message.
Exception(String message, Throwable cause)Constructs a new exception with the specified detail message and cause.
protectedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
Exception(Throwable cause)Constructs a new exception with the specified cause and a detail message of
(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).
-
Method Summary
-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-