Interface DecodeError.TypeMismatch

All Superinterfaces:
DecodeError
Enclosing interface:
DecodeError

public static sealed interface DecodeError.TypeMismatch extends DecodeError
An interface that indicates a DecodeError when the type is different from the expected type.
  • Method Details

    • expectedType

      Type expectedType()
      Gets an expected Type.
      Returns:
      an expected Type
    • actualType

      Type actualType()
      Gets an actual Type.
      Returns:
      an actual Type