Class ConversionErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.core.convert.exceptions.ConversionErrorException
- All Implemented Interfaces:
Serializable
An exception thrown in the case of a
ConversionError
.- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ConstructorDescriptionConversionErrorException
(Argument argument, ConversionError conversionError) ConversionErrorException
(Argument argument, Exception cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConversionErrorException
- Parameters:
argument
- The argumentconversionError
- The conversion error
-
ConversionErrorException
- Parameters:
argument
- The argumentcause
- The cause
-
-
Method Details
-
getArgument
- Returns:
- The argument that failed conversion.
-
getConversionError
- Returns:
- The conversion error
-