Package com.globalmentor.util
Class DataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.globalmentor.util.DataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SyntaxException
Checked exception indicating that there was an error with data being processed.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception with no detail message.DataException
(String message) Constructs a new exception with the specified detail message.DataException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.DataException
(Throwable cause) Constructs a new exception with the specified cause and a detail message of(cause==null ? null : cause.toString())
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataException
public DataException()Constructs a new exception with no detail message. -
DataException
Constructs a new exception with the specified detail message.- Parameters:
message
- The detail message.
-
DataException
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- The detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method), ornull
if the cause is nonexistent or unknown.
-
DataException
Constructs a new exception with the specified cause and a detail message of(cause==null ? null : cause.toString())
.- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method), ornull
if the cause is nonexistent or unknown.
-