Top Description Fields Constructors Methods
org.springframework.core.convert

public Class ConverterNotFoundException

extends ConversionException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.lang.Nullable

Exception to be thrown when a suitable converter could not be found in a given conversion service.
Authors
Keith Donald, Juergen Hoeller
Since
3.0

Field Summary

Modifier and TypeField and Description
private final TypeDescriptor
private final TypeDescriptor

Constructor Summary

AccessConstructor and Description
public
ConverterNotFoundException(TypeDescriptor
the source type requested to convert from
sourceType
,
TypeDescriptor
the target type requested to convert to
targetType
)

Create a new conversion executor not found exception.

Method Summary

Modifier and TypeMethod and Description
public TypeDescriptor
getSourceType()

Return the source type that was requested to convert from.

public TypeDescriptor
getTargetType()

Return the target type that was requested to convert to.

Field Detail

sourceTypeback to summary
private final TypeDescriptor sourceType
Annotations
@Nullable
targetTypeback to summary
private final TypeDescriptor targetType

Constructor Detail

ConverterNotFoundExceptionback to summary
public ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType)

Create a new conversion executor not found exception.

Parameters
sourceType:TypeDescriptor

the source type requested to convert from

targetType:TypeDescriptor

the target type requested to convert to

Method Detail

getSourceTypeback to summary
public TypeDescriptor getSourceType()

Return the source type that was requested to convert from.

Annotations
@Nullable
getTargetTypeback to summary
public TypeDescriptor getTargetType()

Return the target type that was requested to convert to.