Save
Data
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.
Parameters
the detail message. The detail message is saved for later retrieval by the getMessage method.
Constructs a new exception with the specified detail message and cause.
Note that the detail message associated with cause
is not automatically incorporated in this exception's detail message.
Since
1.4
Parameters
the detail message (which is saved for later retrieval by the getMessage method).
the cause (which is saved for later
retrieval by the getCause
method). (A null
value is permitted, and
indicates that the cause is nonexistent or unknown.)
Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
Since
1.7
Parameters
the detail message.
the cause. (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)
whether suppression is enabled or disabled
whether the stack trace should be writable