Class NullValueSerdeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.micronaut.serde.exceptions.SerdeException
io.micronaut.serde.exceptions.NullValueSerdeException
- All Implemented Interfaces:
Serializable
Signals that a scalar decoder encountered a serialized null value where a non-null value was expected.
- Since:
- 3.1
- Author:
- Denis Stepanov
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic NullValueSerdeExceptioncreate()Creates a null-value sentinel exception without filling in a stack trace.static NullValueSerdeExceptionunexpectedToken(Object expected, Object actual) Creates a null-value sentinel exception with the same message shape as an unexpected token exception.Methods inherited from class SerdeException
getPath, getPathAsStringMethods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
Creates a null-value sentinel exception without filling in a stack trace.- Returns:
- The exception
-
unexpectedToken
Creates a null-value sentinel exception with the same message shape as an unexpected token exception.- Parameters:
expected- The expected tokenactual- The actual token- Returns:
- The exception
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-