org.springframework.beans
Class ConversionNotSupportedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.PropertyAccessException
                          extended by org.springframework.beans.TypeMismatchException
                              extended by org.springframework.beans.ConversionNotSupportedException
All Implemented Interfaces:
java.io.Serializable, ErrorCoded

public class ConversionNotSupportedException
extends TypeMismatchException

Exception thrown when no suitable editor or converter can be found for a bean property.

Since:
3.0
Author:
Arjen Poutsma, Juergen Hoeller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.beans.TypeMismatchException
ERROR_CODE
 
Constructor Summary
ConversionNotSupportedException(java.lang.Object value, java.lang.Class requiredType, java.lang.Throwable cause)
          Create a new ConversionNotSupportedException.
ConversionNotSupportedException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.Class requiredType, java.lang.Throwable cause)
          Create a new ConversionNotSupportedException.
 
Method Summary
 
Methods inherited from class org.springframework.beans.TypeMismatchException
getErrorCode, getRequiredType, getValue
 
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
 

Constructor Detail

ConversionNotSupportedException

public ConversionNotSupportedException(java.beans.PropertyChangeEvent propertyChangeEvent,
                                       java.lang.Class requiredType,
                                       java.lang.Throwable cause)
Create a new ConversionNotSupportedException.

Parameters:
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)

ConversionNotSupportedException

public ConversionNotSupportedException(java.lang.Object value,
                                       java.lang.Class requiredType,
                                       java.lang.Throwable cause)
Create a new ConversionNotSupportedException.

Parameters:
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)