StripeManaged.Error (StripeManaged v0.1.0)

Copy Markdown View Source

Structured error returned by all API calls.

Fields

  • :type - error category (:api_error, :card_error, :invalid_request, :authentication, :rate_limit, :network)
  • :code - Stripe error code string (e.g. "resource_missing")
  • :message - human-readable description
  • :param - the parameter that caused the error (if applicable)
  • :status - HTTP status code

Summary

Types

t()

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