org.springframework.core.convert
Class ConverterNotFoundException

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.core.convert.ConversionException
                      extended by org.springframework.core.convert.ConverterNotFoundException
All Implemented Interfaces:
Serializable

public final class ConverterNotFoundException
extends ConversionException

Thrown when a suitable converter could not be found in a conversion service.

Since:
3.0
Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType)
          Creates a new conversion executor not found exception.
 
Method Summary
 TypeDescriptor getSourceType()
          Returns the source type that was requested to convert from.
 TypeDescriptor getTargetType()
          Returns the target type that was requested to convert to.
 
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

ConverterNotFoundException

public ConverterNotFoundException(TypeDescriptor sourceType,
                                  TypeDescriptor targetType)
Creates a new conversion executor not found exception.

Parameters:
sourceType - the source type requested to convert from
targetType - the target type requested to convert to
message - a descriptive message
Method Detail

getSourceType

public TypeDescriptor getSourceType()
Returns the source type that was requested to convert from.


getTargetType

public TypeDescriptor getTargetType()
Returns the target type that was requested to convert to.