Package com.deltaxml.core.exceptions
Class DeltaXMLError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.deltaxml.core.exceptions.DeltaXMLError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ParserInstantiationException
This class specifies an error condition.
Because it extends RuntimeException, it is an unchecked exception
and does not need to be declared in method throws clauses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeltaXMLError(String message) Creates a new error with an identifying message.DeltaXMLError(String message, Throwable e) Creates a new error which wraps an existing error or exception and provides an additional message.Creates a new error which wraps an existing error or exception. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Return the throwable that this error wraps.Return the throwable that this error wraps.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DeltaXMLError
Creates a new error with an identifying message.
- Parameters:
message- The error or warning message.
-
DeltaXMLError
Creates a new error which wraps an existing error or exception.
- Parameters:
e- The Exception or Error to wrap.
-
DeltaXMLError
Creates a new error which wraps an existing error or exception and provides an additional message.
- Parameters:
e- The Exception or Error to wrap.message- The error or warning message.
-
-
Method Details
-
getThrowable
Return the throwable that this error wraps. This is often the underlying cause of the error.- Returns:
- A java.lang.Throwable object, or null.
- See Also:
-
getCause
Return the throwable that this error wraps. This is often the underlying cause of the error.
-