|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.core.convert.ConversionException
org.springframework.core.convert.ConversionFailedException
public final class ConversionFailedException
Exception to be thrown when an actual type conversion attempt fails.
| Constructor Summary | |
|---|---|
ConversionFailedException(TypeDescriptor sourceType,
TypeDescriptor targetType,
Object value,
Throwable cause)
Create a new conversion exception. |
|
| Method Summary | |
|---|---|
TypeDescriptor |
getSourceType()
Return the source type we tried to convert the value from. |
TypeDescriptor |
getTargetType()
Return the target type we tried to convert the value to. |
Object |
getValue()
Return the offending value. |
| Methods inherited from class org.springframework.core.NestedRuntimeException |
|---|
contains, getMessage, getMostSpecificCause, getRootCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConversionFailedException(TypeDescriptor sourceType,
TypeDescriptor targetType,
Object value,
Throwable cause)
sourceType - the value's original typetargetType - the value's target typevalue - the value we tried to convertcause - the cause of the conversion failure| Method Detail |
|---|
public TypeDescriptor getSourceType()
public TypeDescriptor getTargetType()
public Object getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||