StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches

The exceptions StripeKit throws, and the Stripe error details attached to them. More...

Collaboration diagram for Errors:

Classes

struct  stripekit::StripeErrorPayload
 The details Stripe returned about a failure. More...
class  stripekit::StripeKitException
 Base class for every exception StripeKit throws. More...
class  stripekit::StripeApiException
 Thrown when Stripe rejects a request, or cannot be reached. More...
class  stripekit::SignatureVerificationException
 Thrown when a webhook delivery cannot be trusted. More...
class  stripekit::ConfigurationException
 Thrown when StripeKit is set up in a way it cannot work with. More...

Enumerations

enum class  stripekit::StripeErrorType {
  stripekit::StripeErrorType::Api , stripekit::StripeErrorType::Card , stripekit::StripeErrorType::Idempotency , stripekit::StripeErrorType::InvalidRequest ,
  stripekit::StripeErrorType::Authentication , stripekit::StripeErrorType::Permission , stripekit::StripeErrorType::RateLimit , stripekit::StripeErrorType::ApiConnection ,
  stripekit::StripeErrorType::Unknown
}
 What kind of thing went wrong, as categorised by Stripe. More...

Detailed Description

The exceptions StripeKit throws, and the Stripe error details attached to them.

Enumeration Type Documentation

◆ StripeErrorType

enum class stripekit::StripeErrorType
strong

What kind of thing went wrong, as categorised by Stripe.

See also
https://docs.stripe.com/error-handling
Enumerator
Api 

Something went wrong on Stripe's side.

Worth retrying.

Card 

The card was declined.

Ask the customer for another one.

Idempotency 

An idempotency key was reused with different parameters.

InvalidRequest 

The request was malformed, or referred to something that does not exist.

Authentication 

The API key is missing, wrong, or revoked.

Permission 

The key is valid but not allowed to do this.

RateLimit 

Too many requests too quickly.

Back off and retry.

ApiConnection 

Stripe could not be reached.

Worth retrying.

Unknown 

The error could not be categorised.

Definition at line 27 of file Errors.h.