public class SourceAccessError extends AbstractMappingResult
PropertyNotFoundException errors and general EvaluationException errors.| Constructor and Description |
|---|
SourceAccessError(Mapping mapping,
EvaluationException error)
Creates a new source access 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, toStringpublic SourceAccessError(Mapping mapping, EvaluationException error)
error - the underlying evaluation exception that occurredpublic String getCode()
MappingResultgetCode in interface MappingResultgetCode in class AbstractMappingResultpublic boolean isError()
MappingResultisError in interface MappingResultisError in class AbstractMappingResultpublic Throwable getErrorCause()
MappingResultgetErrorCause in interface MappingResultgetErrorCause in class AbstractMappingResultpublic Object getOriginalValue()
MappingResultgetOriginalValue in interface MappingResultgetOriginalValue in class AbstractMappingResultpublic Object getMappedValue()
MappingResultgetMappedValue in interface MappingResultgetMappedValue in class AbstractMappingResult