PB.SchemaError exception (PB v0.1.0)

Copy Markdown View Source

Schema-resolution and introspection failure.

Raised or returned when a name cannot be resolved in the supplied schema, or a schema-level invariant is violated. See PB.Error for the full error model.

Summary

Types

Which schema-resolution failure this is.

t()

Types

kind()

@type kind() ::
  :unknown_message
  | :unknown_enum
  | :unknown_service
  | :unknown_extension
  | :unsupported_edition
  | :invalid_schema

Which schema-resolution failure this is.

t()

@type t() :: %PB.SchemaError{
  __exception__: true,
  kind: kind() | nil,
  message_name: atom() | nil,
  name: term(),
  operation: PB.Error.operation() | nil,
  path: [PB.Error.path_element()],
  reason: term(),
  type_name: atom() | nil
}