Package io.guise.framework.converter
Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.guise.framework.converter.ConversionException
- All Implemented Interfaces:
Serializable
Exception representing a conversion error.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new exception withnull
as its detail message.ConversionException
(String message) Constructs a new exception with the specified detail message.ConversionException
(String message, Object value) Constructs a new exception with the specified detail message and value object.ConversionException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.ConversionException
(String message, Throwable cause, Object value) Constructs a new exception with the specified detail message, cause, and value object.ConversionException
(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
-
ConversionException
public ConversionException()Constructs a new exception withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
. -
ConversionException
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
ConversionException
Constructs a new exception with the specified detail message and value object. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.value
- The value being converted, which may be of any type, ornull
if the value being converted is not available.
-
ConversionException
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.
-
ConversionException
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.
-
ConversionException
Constructs a new exception with the specified detail message, cause, and value object.- 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.value
- The value being converted, which may be of any type, ornull
if the value being converted is not available.
-
-
Method Details
-
getValue
- Returns:
- The value being converted, which may be of any type, or
null
if the value being converted is not available.
-