| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | initCause(Throwable cause)
Overrides java. Initializes the cause of this throwable to the specified value. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| UncheckedDocletException | back to summary |
|---|---|
| public UncheckedDocletException(DocletException de) | |
| initCause | back to summary |
|---|---|
| public Throwable initCause(Throwable cause) Overrides java. Doc from java. Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.) This method can be called at most once. It is generally called from
within the constructor, or immediately after creating the
throwable. If this throwable was created
with An example of using this method on a legacy throwable type without other support for setting the cause is:
try {
lowLevelOp();
} catch (LowLevelException le) {
throw (HighLevelException)
new HighLevelException().initCause(le); // Legacy constructor
}
| |