Fountain.Error exception (fountain_sdk v0.1.0)

Copy Markdown View Source

Structured errors returned by the Fountain API and transport.

Summary

Types

kind()

@type kind() ::
  :auth
  | :subscription_required
  | :not_found
  | :validation
  | :rate_limit
  | :conversation_busy
  | :not_ready
  | :quota_exceeded
  | :connection
  | :resolution
  | :timeout
  | :api

t()

@type t() :: %Fountain.Error{
  __exception__: true,
  body: term(),
  code: term(),
  conversation_id: term(),
  kind: term(),
  message: term(),
  partial_text: term(),
  retry_after: term(),
  status: term()
}

Functions

active_sandboxes(arg1)

field_errors(arg1)

limit(arg1)

retryable?(error)

upgrade_url(arg1)