public class Exception extends Throwable
Constructor and Description |
---|
Exception()
Constructs an Exception with no specified detail message.
|
Exception(String s)
Constructs an Exception with the specified detail message.
|
Exception(String s,
Throwable cause)
Constructs a new exception with message and cause.
|
Exception(Throwable cause)
Constructs a new exception with the provided cause.
|
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
public Exception()
public Exception(String s)
public Exception(Throwable cause)
cause
- The cause of the exception.