[][src]Enum stripe::ErrorCode

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,
    // some variants omitted
}

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

Variants

AccountAlreadyExistsAccountCountryInvalidAddressAccountInvalidAccountNumberInvalidAlipayUpgradeRequiredAmountTooLargeAmountTooSmallApiKeyExpiredBalanceInsufficientBankAccountExistsBankAccountUnusableBankAccountUnverifiedBitcoinUpgradeRequiredCardDeclinedChargeAlreadyCapturedChargeAlreadyRefundedChargeDisputedChargeExpiredForCaptureCountryUnsupportedCouponExpiredCustomerMaxSubscriptionsEmailInvalidExpiredCardIncorrectAddressIncorrectCvcIncorrectNumberIncorrectZipInstantPayoutsUnsupportedInvalidCardTypeInvalidChargeAmountInvalidCvcInvalidExpiryMonthInvalidExpiryYearInvalidNumberInvalidSourceUsageInvoiceNoCustomerLineItemsInvoiceNoSubscriptionLineItemsInvoiceNotEditableInvoiceUpcomingNoneLivemodeMismatchMissingOrderCreationFailedOrderRequiredSettingsOrderStatusInvalidOrderUpstreamTimeoutOutOfInventoryParameterInvalidEmptyParameterInvalidIntegerParameterInvalidStringBlankParameterInvalidStringEmptyParameterMissingParameterUnknownPaymentMethodUnactivatedPayoutsNotAllowedPlatformApiKeyExpiredPostalCodeInvalidProcessingErrorProductInactiveRateLimitResourceAlreadyExistsResourceMissingRoutingNumberInvalidSecretKeyRequiredSepaUnsupportedAccountShippingCalculationFailedSkuInactiveStateUnsupportedTaxIdInvalidTaxesCalculationFailedTestmodeChargesOnlyTlsVersionUnsupportedTokenAlreadyUsedTokenInUseTransfersNotAllowedUpstreamOrderCreationFailedUrlInvalid

Trait Implementations

impl Eq for ErrorCode[src]

impl Clone for ErrorCode[src]

impl PartialEq<ErrorCode> for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Hash for ErrorCode[src]

impl Display for ErrorCode[src]

impl Debug for ErrorCode[src]

impl Serialize for ErrorCode[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self