Latch.Error.InvalidResponse exception (latch v0.5.0)

Copy Markdown

A server response was structurally invalid, including bad JSON or a missing or malformed required field.

reason values

  • :invalid_json
  • :unexpected_response
  • {:http_status, status}
  • {:missing, field}
  • {:invalid, field}

Summary

Types

reason()

@type reason() ::
  :invalid_json
  | :unexpected_response
  | {:http_status, pos_integer()}
  | {:missing, String.t()}
  | {:invalid, String.t()}

t()

@type t() :: %Latch.Error.InvalidResponse{__exception__: term(), reason: reason()}