org.springframework.core.convert

Class 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 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
    • 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.