public class DeltaXMLError
extends java.lang.Error
This class specifies an error condition.
Because it extends Error
it does not need to be declared in method throws clauses.
Constructor and Description |
---|
DeltaXMLError(java.lang.String message)
Creates a new error with an identifying message.
|
DeltaXMLError(java.lang.String message,
java.lang.Throwable e)
Creates a new error which wraps an existing error or exception and provides an additional message.
|
DeltaXMLError(java.lang.Throwable e)
Creates a new error which wraps an existing error or exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Return the throwable that this error wraps.
|
java.lang.Throwable |
getThrowable()
Return the throwable that this error wraps.
|
public DeltaXMLError(java.lang.String message)
Creates a new error with an identifying message.
message
- The error or warning message.public DeltaXMLError(java.lang.Throwable e)
Creates a new error which wraps an existing error or exception.
e
- The Exception or Error to wrap.public DeltaXMLError(java.lang.String message, java.lang.Throwable e)
Creates a new error which wraps an existing error or exception and provides an additional message.
e
- The Exception or Error to wrap.message
- The error or warning message.public java.lang.Throwable getThrowable()
DeltaXMLError.getCause()
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
DeltaXMLError.getThrowable()