Enum stripe::ErrorCode[][src]

#[non_exhaustive]pub enum ErrorCode {
    AccountAlreadyExists,
    AccountCountryInvalidAddress,
    AccountInvalid,
    AccountNumberInvalid,
    AlipayUpgradeRequired,
    AmountTooLarge,
    AmountTooSmall,
    ApiKeyExpired,
    BalanceInsufficient,
    BankAccountExists,
    BankAccountUnusable,
    BankAccountUnverified,
    BitcoinUpgradeRequired,
    CardDeclined,
    ChargeAlreadyCaptured,
    ChargeAlreadyRefunded,
    ChargeDisputed,
    ChargeExpiredForCapture,
    CountryUnsupported,
    CouponExpired,
    CustomerMaxSubscriptions,
    EmailInvalid,
    ExpiredCard,
    IncorrectAddress,
    IncorrectCvc,
    IncorrectNumber,
    IncorrectZip,
    InstantPayoutsUnsupported,
    InvalidCardType,
    InvalidChargeAmount,
    InvalidCvc,
    InvalidExpiryMonth,
    InvalidExpiryYear,
    InvalidNumber,
    InvalidSourceUsage,
    InvoiceNoCustomerLineItems,
    InvoiceNoSubscriptionLineItems,
    InvoiceNotEditable,
    InvoiceUpcomingNone,
    LivemodeMismatch,
    Missing,
    OrderCreationFailed,
    OrderRequiredSettings,
    OrderStatusInvalid,
    OrderUpstreamTimeout,
    OutOfInventory,
    ParameterInvalidEmpty,
    ParameterInvalidInteger,
    ParameterInvalidStringBlank,
    ParameterInvalidStringEmpty,
    ParameterMissing,
    ParameterUnknown,
    PaymentMethodUnactivated,
    PayoutsNotAllowed,
    PlatformApiKeyExpired,
    PostalCodeInvalid,
    ProcessingError,
    ProductInactive,
    RateLimit,
    ResourceAlreadyExists,
    ResourceMissing,
    RoutingNumberInvalid,
    SecretKeyRequired,
    SepaUnsupportedAccount,
    ShippingCalculationFailed,
    SkuInactive,
    StateUnsupported,
    TaxIdInvalid,
    TaxesCalculationFailed,
    TestmodeChargesOnly,
    TlsVersionUnsupported,
    TokenAlreadyUsed,
    TokenInUse,
    TransfersNotAllowed,
    UpstreamOrderCreationFailed,
    UrlInvalid,
}

The list of possible values for a RequestError's code.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AccountAlreadyExists
AccountCountryInvalidAddress
AccountInvalid
AccountNumberInvalid
AlipayUpgradeRequired
AmountTooLarge
AmountTooSmall
ApiKeyExpired
BalanceInsufficient
BankAccountExists
BankAccountUnusable
BankAccountUnverified
BitcoinUpgradeRequired
CardDeclined
ChargeAlreadyCaptured
ChargeAlreadyRefunded
ChargeDisputed
ChargeExpiredForCapture
CountryUnsupported
CouponExpired
CustomerMaxSubscriptions
EmailInvalid
ExpiredCard
IncorrectAddress
IncorrectCvc
IncorrectNumber
IncorrectZip
InstantPayoutsUnsupported
InvalidCardType
InvalidChargeAmount
InvalidCvc
InvalidExpiryMonth
InvalidExpiryYear
InvalidNumber
InvalidSourceUsage
InvoiceNoCustomerLineItems
InvoiceNoSubscriptionLineItems
InvoiceNotEditable
InvoiceUpcomingNone
LivemodeMismatch
Missing
OrderCreationFailed
OrderRequiredSettings
OrderStatusInvalid
OrderUpstreamTimeout
OutOfInventory
ParameterInvalidEmpty
ParameterInvalidInteger
ParameterInvalidStringBlank
ParameterInvalidStringEmpty
ParameterMissing
ParameterUnknown
PaymentMethodUnactivated
PayoutsNotAllowed
PlatformApiKeyExpired
PostalCodeInvalid
ProcessingError
ProductInactive
RateLimit
ResourceAlreadyExists
ResourceMissing
RoutingNumberInvalid
SecretKeyRequired
SepaUnsupportedAccount
ShippingCalculationFailed
SkuInactive
StateUnsupported
TaxIdInvalid
TaxesCalculationFailed
TestmodeChargesOnly
TlsVersionUnsupported
TokenAlreadyUsed
TokenInUse
TransfersNotAllowed
UpstreamOrderCreationFailed
UrlInvalid

Trait Implementations

impl Clone for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Debug for ErrorCode[src]

impl<'de> Deserialize<'de> for ErrorCode[src]

impl Display for ErrorCode[src]

impl Eq for ErrorCode[src]

impl Hash for ErrorCode[src]

impl PartialEq<ErrorCode> for ErrorCode[src]

impl Serialize for ErrorCode[src]

impl StructuralEq for ErrorCode[src]

impl StructuralPartialEq for ErrorCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]