spring-framework / org.springframework.core.convert / ConversionFailedException

ConversionFailedException

open class ConversionFailedException : ConversionException

Exception to be thrown when an actual type conversion attempt fails.

Author
Keith Donald

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

ConversionFailedException(sourceType: TypeDescriptor, targetType: TypeDescriptor, value: Any, cause: Throwable)

Create a new conversion exception.

Functions

getSourceType

open fun getSourceType(): TypeDescriptor

Return the source type we tried to convert the value from.

getTargetType

open fun getTargetType(): TypeDescriptor

Return the target type we tried to convert the value to.

getValue

open fun getValue(): Any

Return the offending value.