PB.OptionError exception (PB v0.1.0)

Copy Markdown View Source

Option failure: the caller passed options the API does not accept, a known option carried an invalid value, or options were not a keyword list. See PB.Error for the error model.

Summary

Types

Which option failure this is.

t()

Types

kind()

@type kind() :: :unknown_options | :invalid_option | :invalid_options

Which option failure this is.

t()

@type t() :: %PB.OptionError{
  __exception__: true,
  kind: kind() | nil,
  message_name: atom() | nil,
  operation: PB.Error.operation() | nil,
  option: term(),
  options: term(),
  reason: term(),
  value: term()
}