Throwable(message, cause) - Java Throwable's constructor
Constructor java.lang.Throwable
Throwable(
String message,
Throwable 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.
- Parameters:
-
message
- the detail message (which is saved for later retrieval by thegetMessage()
method). -
cause
- the cause (which is saved for later retrieval by thegetCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
- Since:
- Java 1.4