java.lang.Object | |||||||
↳ | java.lang.Throwable | ||||||
↳ | java.lang.Exception | ||||||
↳ | java.lang.RuntimeException | ||||||
↳ | org.springframework.core.NestedRuntimeException | ||||||
↳ | org.springframework.beans.BeansException | ||||||
↳ | org.springframework.beans.PropertyAccessException | ||||||
↳ | org.springframework.beans.TypeMismatchException |
Known Direct Subclasses |
Exception thrown on a type mismatch when trying to set a bean property.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ERROR_CODE | Error code that a type mismatch error will be registered with. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new TypeMismatchException.
| |||||||||||
Create a new TypeMismatchException.
| |||||||||||
Create a new TypeMismatchException without PropertyChangeEvent.
| |||||||||||
Create a new TypeMismatchException without PropertyChangeEvent.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the required target type, if any.
| |||||||||||
Return the offending value (may be
null )
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.PropertyAccessException
| |||||||||||
From class
org.springframework.beans.BeansException
| |||||||||||
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.ErrorCoded
|
Error code that a type mismatch error will be registered with.
Create a new TypeMismatchException.
propertyChangeEvent | the PropertyChangeEvent that resulted in the problem |
---|---|
requiredType | the required target type |
Create a new TypeMismatchException.
propertyChangeEvent | the PropertyChangeEvent that resulted in the problem |
---|---|
requiredType | the required target type (or null if not known) |
cause | the root cause (may be null )
|
Create a new TypeMismatchException without PropertyChangeEvent.
value | the offending value that couldn't be converted (may be null ) |
---|---|
requiredType | the required target type (or null if not known)
|
Create a new TypeMismatchException without PropertyChangeEvent.
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 )
|