Class InvalidFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.micronaut.serde.exceptions.SerdeException
io.micronaut.serde.exceptions.InvalidFormatException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidPropertyFormatException
Error for when a value cannot be converted to the desired type.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidFormatException(String message, @Nullable Exception cause, @Nullable Object originalValue) -
Method Summary
Methods inherited from class SerdeException
getPath, getPathAsStringMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidFormatException
-
-
Method Details
-
getCause
-
getOriginalValue
- Returns:
- The original value
-
toConversionError
public @NonNull io.micronaut.core.convert.ConversionError toConversionError()Converts the exception to a conversion error.- Returns:
- The conversion error.
-