Example usage for Java org.springframework.beans TypeMismatchException fields, constructors, methods, implement or subclass
The text is from its open source code.
TypeMismatchException(PropertyChangeEvent propertyChangeEvent, @Nullable Class> requiredType, @Nullable Throwable cause) Create a new TypeMismatchException . | |
TypeMismatchException(@Nullable Object value, @Nullable Class> requiredType, @Nullable Throwable cause) Create a new TypeMismatchException without a PropertyChangeEvent . | |
TypeMismatchException(PropertyChangeEvent propertyChangeEvent, Class> requiredType) Create a new TypeMismatchException . | |
TypeMismatchException(@Nullable Object value, @Nullable Class> requiredType) Create a new TypeMismatchException without a PropertyChangeEvent . |
String | getErrorCode() |
String | getMessage() Return the detail message, including the message from the nested exception if there is one. |
Class> | getRequiredType() Return the required target type, if any. |
Object | getValue() Return the offending value (may be null ). |
void | initPropertyName(String propertyName) Initialize this exception's property name for exposure through #getPropertyName() , as an alternative to having it initialized via a PropertyChangeEvent . |