Package com.stripe.android.core.exception

Types

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

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

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.

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

No valid API key provided.

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.

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

A StripeException indicating that invalid parameters were used in a response. E.g when the response contains a null field that shouldn't be null, or contains an unknown Enum value that's not defined in the SDK.

Link copied to clipboard
class MaxRetryReachedException(message: String?) : StripeException

An Exception that represents max retry is reached when making a request.

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

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

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.

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.