Save Data

constructor(message: T)

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

message

the detail message. The detail message is saved for later retrieval by the getMessage method.


constructor(message: T, cause: Throwable)

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

message

the detail message (which is saved for later retrieval by the getMessage method).

cause

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.)


constructor(message: T, cause: Throwable, enableSuppression: Boolean, writableStackTrace: Boolean)

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

message

the detail message.

cause

the cause. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

enableSuppression

whether suppression is enabled or disabled

writableStackTrace

whether the stack trace should be writable