Dowser.Client.JSON.Error exception (Dowser.Client v0.3.0)

View Source

JSON encoding or decoding error.

Wraps whatever Dowser.Client.JSON surfaced — JSON's own {:unexpected_end, _}/{:invalid_byte, _, _} reason, or a raised Protocol.UndefinedError for a term that has no JSON representation — so callers only handle Dowser exceptions. :operation is :encode or :decode; the original term is kept in :reason.

Summary

Types

t()

@type t() :: %Dowser.Client.JSON.Error{
  __exception__: true,
  operation: :encode | :decode | nil,
  reason: term()
}