public class ConversionExecutionException extends ConversionException
Constructor and Description |
---|
ConversionExecutionException(java.lang.Object value,
java.lang.Class<?> sourceClass,
java.lang.Class<?> targetClass,
java.lang.String message)
Creates a new conversion exception.
|
ConversionExecutionException(java.lang.Object value,
java.lang.Class<?> sourceClass,
java.lang.Class<?> targetClass,
java.lang.Throwable cause)
Creates a new conversion exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getSourceClass()
Returns the source type we tried to convert the value from.
|
java.lang.Class<?> |
getTargetClass()
Returns the target type we tried to convert the value to.
|
java.lang.Object |
getValue()
Returns the actual value we tried to convert, an instance of
getSourceClass() . |
public ConversionExecutionException(java.lang.Object value, java.lang.Class<?> sourceClass, java.lang.Class<?> targetClass, java.lang.Throwable cause)
value
- the value we tried to convertsourceClass
- the value's original typetargetClass
- the value's target typecause
- the cause of the conversion failurepublic ConversionExecutionException(java.lang.Object value, java.lang.Class<?> sourceClass, java.lang.Class<?> targetClass, java.lang.String message)
value
- the value we tried to convertsourceClass
- the value's original typetargetClass
- the value's target typemessage
- a descriptive message of what went wrong.public java.lang.Object getValue()
getSourceClass()
.public java.lang.Class<?> getSourceClass()
public java.lang.Class<?> getTargetClass()