Class NullValueSerdeException

All Implemented Interfaces:
Serializable

@Internal public final class NullValueSerdeException extends SerdeException
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 Details

    • create

      public static NullValueSerdeException create()
      Creates a null-value sentinel exception without filling in a stack trace.
      Returns:
      The exception
    • unexpectedToken

      public static NullValueSerdeException unexpectedToken(Object expected, Object actual)
      Creates a null-value sentinel exception with the same message shape as an unexpected token exception.
      Parameters:
      expected - The expected token
      actual - The actual token
      Returns:
      The exception
    • fillInStackTrace

      public Throwable fillInStackTrace()
      Overrides:
      fillInStackTrace in class Throwable