org.springframework.core.convert
Class ConverterNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.core.convert.ConversionException
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
ConverterNotFoundException
public ConverterNotFoundException(TypeDescriptor sourceType,
TypeDescriptor targetType)
- Creates a new conversion executor not found exception.
- Parameters:
sourceType
- the source type requested to convert fromtargetType
- the target type requested to convert tomessage
- a descriptive message
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.