Represents errors from the Stripe API, extending the base StripeError with a specific type identifier for API-related failures.
export class StripeAPIError extends StripeError {
constructor(raw: StripeRawError = {}) {
super(raw, 'StripeAPIError');
}
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key