Texture.HttpStructuredField.Parser.Error exception (texture v1.2.0)

Copy Markdown View Source

Exception raised when a structured field cannot be parsed.

The exception carries the following fields:

  • :reason - a {tag, rest} tuple where tag is an atom describing the error (for instance :invalid_value or :expected_delimiter) and rest is the remaining input at the point of failure.
  • :value - the full value given to the parser.

Summary

Types

t()

@type t() :: %Texture.HttpStructuredField.Parser.Error{
  __exception__: term(),
  reason: {atom(), binary()},
  value: binary() | nil
}