Package com.globalmentor.io
Class IllegalDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.globalmentor.io.IllegalDataException
- All Implemented Interfaces:
Serializable
Unchecked exception indicating that some data encountered was invalid or inappropriate in the context.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception with no detail message.IllegalDataException
(String message) Constructs a new exception with the specified detail message.IllegalDataException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.IllegalDataException
(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
-
IllegalDataException
public IllegalDataException()Constructs a new exception with no detail message. -
IllegalDataException
Constructs a new exception with the specified detail message.- Parameters:
message
- The detail message.
-
IllegalDataException
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.
-
IllegalDataException
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.
-