public class ConversionExecutionException extends ConversionException
Constructor and Description |
---|
ConversionExecutionException(Object value,
Class sourceClass,
Class targetClass,
String message)
Creates a new conversion exception.
|
ConversionExecutionException(Object value,
Class sourceClass,
Class targetClass,
Throwable cause)
Creates a new conversion exception.
|
Modifier and Type | Method and Description |
---|---|
Class |
getSourceClass()
Returns the source type we tried to convert the value from.
|
Class |
getTargetClass()
Returns the target type we tried to convert the value to.
|
Object |
getValue()
Returns the actual value we tried to convert, an instance of
getSourceClass() . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConversionExecutionException(Object value, Class sourceClass, Class targetClass, 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(Object value, Class sourceClass, Class targetClass, 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 Object getValue()
getSourceClass()
.public Class getSourceClass()
public Class getTargetClass()