Teya.Error (teya v0.4.0)

Copy Markdown View Source

Represents an error returned by the Teya API.

Pattern-match on code for Teya-specific error codes: "BAD_REQUEST", "UNAUTHORISED", "FORBIDDEN", "TOO_MANY_REQUESTS", "INTERNAL_SERVER_ERROR".

Summary

Types

t()

@type t() :: %Teya.Error{
  code: String.t() | nil,
  message: String.t() | nil,
  status: integer() | nil
}