|
Spring for Android | ||||||||
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.beans.BeansException
org.springframework.beans.PropertyAccessException
org.springframework.beans.TypeMismatchException
public class TypeMismatchException
Exception thrown on a type mismatch when trying to set a bean property.
Field Summary | |
---|---|
static java.lang.String |
ERROR_CODE
Error code that a type mismatch error will be registered with. |
Constructor Summary | |
---|---|
TypeMismatchException(java.lang.Object value,
java.lang.Class<?> requiredType)
Create a new TypeMismatchException without PropertyChangeEvent. |
|
TypeMismatchException(java.lang.Object value,
java.lang.Class<?> requiredType,
java.lang.Throwable cause)
Create a new TypeMismatchException without PropertyChangeEvent. |
|
TypeMismatchException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Class<?> requiredType)
Create a new TypeMismatchException. |
|
TypeMismatchException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Class<?> requiredType,
java.lang.Throwable cause)
Create a new TypeMismatchException. |
Method Summary | |
---|---|
java.lang.String |
getErrorCode()
Return the error code associated with this failure. |
java.lang.Class<?> |
getRequiredType()
Return the required target type, if any. |
java.lang.Object |
getValue()
Return the offending value (may be null ) |
Methods inherited from class org.springframework.beans.PropertyAccessException |
---|
getPropertyChangeEvent, getPropertyName |
Methods inherited from class org.springframework.beans.BeansException |
---|
equals, hashCode |
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_CODE
Constructor Detail |
---|
public TypeMismatchException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.Class<?> requiredType)
propertyChangeEvent
- the PropertyChangeEvent that resulted in the problemrequiredType
- the required target typepublic TypeMismatchException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.Class<?> requiredType, java.lang.Throwable cause)
propertyChangeEvent
- the PropertyChangeEvent that resulted in the problemrequiredType
- the required target type (or null
if not known)cause
- the root cause (may be null
)public TypeMismatchException(java.lang.Object value, java.lang.Class<?> requiredType)
value
- the offending value that couldn't be converted (may be null
)requiredType
- the required target type (or null
if not known)public TypeMismatchException(java.lang.Object value, java.lang.Class<?> requiredType, java.lang.Throwable cause)
value
- the offending value that couldn't be converted (may be null
)requiredType
- the required target type (or null
if not known)cause
- the root cause (may be null
)Method Detail |
---|
public java.lang.Object getValue()
null
)
getValue
in class PropertyAccessException
public java.lang.Class<?> getRequiredType()
public java.lang.String getErrorCode()
ErrorCoded
null
if not error-coded
|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |