Class InvalidFormatException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidPropertyFormatException

public class InvalidFormatException extends SerdeException
Error for when a value cannot be converted to the desired type.
Since:
1.0.0
See Also:
  • Constructor Details

    • InvalidFormatException

      public InvalidFormatException(String message, @Nullable @Nullable Exception cause, @Nullable @Nullable Object originalValue)
  • Method Details

    • getCause

      public Exception getCause()
      Overrides:
      getCause in class Throwable
    • getOriginalValue

      @Nullable public @Nullable Object getOriginalValue()
      Returns:
      The original value
    • toConversionError

      @NonNull public @NonNull io.micronaut.core.convert.ConversionError toConversionError()
      Converts the exception to a conversion error.
      Returns:
      The conversion error.