Class ConversionErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.micronaut.core.convert.exceptions.ConversionErrorException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConversionErrorException extends java.lang.RuntimeException
An exception thrown in the case of aConversionError
.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversionErrorException(Argument argument, ConversionError conversionError)
ConversionErrorException(Argument argument, java.lang.Exception cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Argument
getArgument()
ConversionError
getConversionError()
-
-
-
Constructor Detail
-
ConversionErrorException
public ConversionErrorException(Argument argument, ConversionError conversionError)
- Parameters:
argument
- The argumentconversionError
- The conversion error
-
ConversionErrorException
public ConversionErrorException(Argument argument, java.lang.Exception cause)
- Parameters:
argument
- The argumentcause
- The cause
-
-
Method Detail
-
getArgument
public Argument getArgument()
- Returns:
- The argument that failed conversion.
-
getConversionError
public ConversionError getConversionError()
- Returns:
- The conversion error
-
-