Package com.stripe.android.exception

Types

APIConnectionException
Link copied to clipboard
class APIConnectionException(message: String?, cause: Throwable?) : StripeException

An Exception that represents a failure to connect to Stripe's API.

APIException
Link copied to clipboard
class APIException(stripeError: StripeError?, requestId: String?, statusCode: Int, message: String?, cause: Throwable?) : StripeException

An Exception that represents an internal problem with Stripe's servers.

AuthenticationException
Link copied to clipboard
class AuthenticationException : StripeException

No valid API key provided.

CardException
Link copied to clipboard
class CardException(stripeError: StripeError, requestId: String?) : StripeException

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.

InvalidRequestException
Link copied to clipboard
class InvalidRequestException(stripeError: StripeError?, requestId: String?, statusCode: Int, message: String?, cause: Throwable?) : StripeException

A StripeException indicating that invalid parameters were used in a request.

PermissionException
Link copied to clipboard
class PermissionException(stripeError: StripeError, requestId: String?) : StripeException

A type of AuthenticationException resulting from incorrect permissions to perform the requested action.

RateLimitException
Link copied to clipboard
class RateLimitException(stripeError: StripeError?, requestId: String?, message: String?, cause: Throwable?) : StripeException

An Exception indicating that too many requests have hit the API too quickly.

StripeException
Link copied to clipboard
abstract class StripeException(stripeError: StripeError?, requestId: String?, statusCode: Int, cause: Throwable?, message: String?) : Exception

A base class for Stripe-related exceptions.