PB.DecodeError exception (PB v0.1.0)

Copy Markdown View Source

Structurally invalid serialized input: protobuf wire bytes that are truncated or malformed, or JSON text that is not well-formed for the target. The :format field discriminates :wire from :json. See PB.Error.

Summary

Types

Which structural-decode failure this is.

t()

Types

kind()

@type kind() :: :malformed | :malformed_json | :duplicate_field

Which structural-decode failure this is.

t()

@type t() :: %PB.DecodeError{
  __exception__: true,
  details: map(),
  format: :wire | :json | nil,
  kind: kind() | nil,
  message_name: atom() | nil,
  operation: PB.Error.operation() | nil,
  path: [PB.Error.path_element()],
  reason: term()
}