public class TypeConversionError extends AbstractMappingResult
Constructor and Description |
---|
TypeConversionError(Mapping mapping,
Object originalValue,
Exception cause)
Creates a new type conversion error.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
The mapping result code; for example, "success" , "typeMismatch", "propertyNotFound", or "evaluationException".
|
Throwable |
getErrorCause()
Get the cause of the error result
|
Object |
getMappedValue()
The actual value that was mapped to the target object.
|
Object |
getOriginalValue()
The original value of the source object that was to be mapped.
|
boolean |
isError()
Indicates if this result is an error result.
|
getMapping, toString
public String getCode()
MappingResult
getCode
in interface MappingResult
getCode
in class AbstractMappingResult
public boolean isError()
MappingResult
isError
in interface MappingResult
isError
in class AbstractMappingResult
public Throwable getErrorCause()
MappingResult
getErrorCause
in interface MappingResult
getErrorCause
in class AbstractMappingResult
public Object getOriginalValue()
MappingResult
getOriginalValue
in interface MappingResult
getOriginalValue
in class AbstractMappingResult
public Object getMappedValue()
MappingResult
getMappedValue
in interface MappingResult
getMappedValue
in class AbstractMappingResult