|
spring-binding | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.mapping.results.AbstractMappingResult
org.springframework.binding.mapping.results.TypeConversionError
public class TypeConversionError
Indicates a type conversion occurred during a mapping operation.
| Constructor Summary | |
|---|---|
TypeConversionError(Mapping mapping,
java.lang.Object originalValue,
java.lang.Exception cause)
Creates a new type conversion error. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCode()
The mapping result code; for example, "success" , "typeMismatch", "propertyNotFound", or "evaluationException". |
java.lang.Throwable |
getErrorCause()
Get the cause of the error result |
java.lang.Object |
getMappedValue()
The actual value that was mapped to the target object. |
java.lang.Object |
getOriginalValue()
The original value of the source object that was to be mapped. |
boolean |
isError()
Indicates if this result is an error result. |
| Methods inherited from class org.springframework.binding.mapping.results.AbstractMappingResult |
|---|
getMapping, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypeConversionError(Mapping mapping,
java.lang.Object originalValue,
java.lang.Exception cause)
cause - the underlying type conversion exception| Method Detail |
|---|
public java.lang.String getCode()
MappingResult
getCode in interface MappingResultgetCode in class AbstractMappingResultpublic boolean isError()
MappingResult
isError in interface MappingResultisError in class AbstractMappingResultpublic java.lang.Throwable getErrorCause()
MappingResult
getErrorCause in interface MappingResultgetErrorCause in class AbstractMappingResultpublic java.lang.Object getOriginalValue()
MappingResult
getOriginalValue in interface MappingResultgetOriginalValue in class AbstractMappingResultpublic java.lang.Object getMappedValue()
MappingResult
getMappedValue in interface MappingResultgetMappedValue in class AbstractMappingResult
|
spring-binding | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||