Package com.stripe.android.exception

Types

APIConnectionException
Link copied to clipboard
An Exception that represents a failure to connect to Stripe's API.
class APIConnectionException(message: String?,cause: Throwable?) : StripeException
APIException
Link copied to clipboard
An Exception that represents an internal problem with Stripe's servers.
class APIException(stripeError: StripeError?,requestId: String?,statusCode: Int,message: String?,cause: Throwable?) : StripeException
AuthenticationException
Link copied to clipboard
No valid API key provided.Errors
class AuthenticationException : StripeException
CardException
Link copied to clipboard
An Exception indicating that there is a problem with a Card used for a request. Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can't be charged for some reason.
class CardException(stripeError: StripeError,requestId: String?) : StripeException
InvalidRequestException
Link copied to clipboard
A StripeException indicating that invalid parameters were used in a request.
class InvalidRequestException(stripeError: StripeError?,requestId: String?,statusCode: Int,message: String?,cause: Throwable?) : StripeException
PermissionException
Link copied to clipboard
A type of AuthenticationException resulting from incorrect permissions to perform the requested action.
class PermissionException(stripeError: StripeError,requestId: String?) : StripeException
RateLimitException
Link copied to clipboard
An Exception indicating that too many requests have hit the API too quickly.
class RateLimitException(stripeError: StripeError?,requestId: String?,message: String?,cause: Throwable?) : StripeException
StripeException
Link copied to clipboard
A base class for Stripe-related exceptions.
abstract class StripeException(stripeError: StripeError?,requestId: String?,statusCode: Int,cause: Throwable?,message: String?) : Exception