Class ConversionErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.core.convert.exceptions.ConversionErrorException
All Implemented Interfaces:
Serializable

public class ConversionErrorException extends RuntimeException
An exception thrown in the case of a ConversionError.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Constructor Details

    • ConversionErrorException

      public ConversionErrorException(Argument argument, ConversionError conversionError)
      Parameters:
      argument - The argument
      conversionError - The conversion error
    • ConversionErrorException

      public ConversionErrorException(Argument argument, Exception cause)
      Parameters:
      argument - The argument
      cause - The cause
  • Method Details

    • getArgument

      public Argument getArgument()
      Returns:
      The argument that failed conversion.
    • getConversionError

      public ConversionError getConversionError()
      Returns:
      The conversion error