Ltix.Errors.Unknown.TransportError exception (Ltix v0.2.0)

Copy Markdown View Source

HTTP or connection error from a platform endpoint.

The following fields of this exception are public and can be accessed freely.

  • :status (integer/0 or nil) - the HTTP status, or nil when no response arrived
  • :body (term/0) - the response body, or a description of the connection error
  • :headers (map/0 or nil) - the response headers, such as "retry-after"
  • :url (String.t/0 or nil) - the requested URL

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Unknown.TransportError{
  __exception__: term(),
  body: term(),
  bread_crumbs: term(),
  class: term(),
  headers: term(),
  path: term(),
  spec_ref: term(),
  splode: term(),
  stacktrace: term(),
  status: term(),
  url: term(),
  vars: term()
}

Create an Elixir.Ltix.Errors.Unknown.TransportError without raising it.

Keys

  • :status
  • :body
  • :headers
  • :url
  • :spec_ref