# `StripeManaged.Error`
[🔗](https://github.com/safemyprivacy0-bit/stripe_managed/blob/main/lib/stripe_managed/error.ex#L1)

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

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
