Buble.Error exception (buble v0.1.0)

Copy Markdown View Source

Error returned by the Buble SDK.

Non-bang functions return {:error, %Buble.Error{}}. Bang functions raise the same exception struct.

Summary

Types

t()

@type t() :: %Buble.Error{
  __exception__: true,
  code: String.t() | nil,
  details: term(),
  message: String.t(),
  raw: term(),
  status: pos_integer() | nil,
  type:
    :api
    | :timeout
    | :missing_api_key
    | :unsupported_generation_field
    | :generation_failed
    | :generation_canceled
    | :app_generation_failed
    | :app_generation_canceled
    | :stream
}