| Copyright | (c) David Johnson 2014 |
|---|---|
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Stripe.Error
Contents
Description
Synopsis
- data StripeErrorHTTPCode
- data StripeErrorType
- data StripeErrorCode
- data StripeError = StripeError {}
Types
data StripeErrorHTTPCode Source #
Error Codes for HTTP Responses
Constructors
| BadRequest | 400 |
| UnAuthorized | 401 |
| RequestFailed | 402 |
| NotFound | 404 |
| StripeServerError | (>=500) |
| UnknownHTTPCode | All other codes |
Instances
| Show StripeErrorHTTPCode Source # | |
Defined in Web.Stripe.Error Methods showsPrec :: Int -> StripeErrorHTTPCode -> ShowS # show :: StripeErrorHTTPCode -> String # showList :: [StripeErrorHTTPCode] -> ShowS # | |
data StripeErrorType Source #
Stripe Error Types
Instances
| Show StripeErrorType Source # | |
Defined in Web.Stripe.Error Methods showsPrec :: Int -> StripeErrorType -> ShowS # show :: StripeErrorType -> String # showList :: [StripeErrorType] -> ShowS # | |
data StripeErrorCode Source #
Stripe Error Codes
Constructors
| IncorrectNumber | |
| InvalidNumber | |
| InvalidExpiryMonth | |
| InvalidExpiryYear | |
| InvalidCVC | |
| ExpiredCard | |
| IncorrectCVC | |
| IncorrectZIP | |
| CardDeclined | |
| Missing | |
| ProcessingError | |
| RateLimit | |
| UnknownError |
Instances
| Show StripeErrorCode Source # | |
Defined in Web.Stripe.Error Methods showsPrec :: Int -> StripeErrorCode -> ShowS # show :: StripeErrorCode -> String # showList :: [StripeErrorCode] -> ShowS # | |
data StripeError Source #
Stripe Error
Constructors
| StripeError | |
Fields | |
Instances
| Show StripeError Source # | |
Defined in Web.Stripe.Error Methods showsPrec :: Int -> StripeError -> ShowS # show :: StripeError -> String # showList :: [StripeError] -> ShowS # | |
| FromJSON StripeError Source # | |
Defined in Web.Stripe.Error | |
| Exception StripeError Source # | |
Defined in Web.Stripe.Error Methods toException :: StripeError -> SomeException # fromException :: SomeException -> Maybe StripeError # displayException :: StripeError -> String # | |