Constructs a new throwable with the specified detail message and cause.
Note that the detail message associated with
cause
is not automatically incorporated in
this throwable's detail message.
The fillInStackTrace()
method is called to initialize
the stack trace data in the newly created throwable.
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.) |
Diagram: Exceptions