|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
The details Stripe returned about a failure. More...
#include <Errors.h>
Public Attributes | |
| StripeErrorType | type = StripeErrorType::Unknown |
| What kind of thing went wrong. | |
| std::string | code |
| Stripe's specific error code, for example "card_declined". | |
| std::string | message |
| Stripe's human-readable description of the failure. | |
| int | http_status = 0 |
| HTTP status Stripe returned, or 0 if Stripe was never reached. | |
| std::string | request_id |
| Id of the failed request in Stripe's logs, of the form "req_...". | |
| bool | retryable = false |
| True when the same request may succeed if tried again later. | |
The details Stripe returned about a failure.
Always log request_id: it identifies the exact call in Stripe's own dashboard logs, which turns most "why did this fail" questions into a quick lookup.
| StripeErrorType stripekit::StripeErrorPayload::type = StripeErrorType::Unknown |
| std::string stripekit::StripeErrorPayload::code |
| std::string stripekit::StripeErrorPayload::message |
| int stripekit::StripeErrorPayload::http_status = 0 |
| std::string stripekit::StripeErrorPayload::request_id |
| bool stripekit::StripeErrorPayload::retryable = false |