Package com.stripe.android.core.exception
Types
Link copied to clipboard
class APIConnectionException(message: String? = null, cause: Throwable? = null) : StripeException
Content copied to clipboard
An Exception that represents a failure to connect to Stripe's API.
Link copied to clipboard
class APIException( val stripeError: StripeError? = null, val requestId: String? = null, val statusCode: Int = 0, message: String? = stripeError?.message, cause: Throwable? = null) : StripeException
Content copied to clipboard
An Exception that represents an internal problem with Stripe's servers.
Link copied to clipboard
class AuthenticationException constructor(val stripeError: StripeError, val requestId: String? = null) : StripeException
Content copied to clipboard
No valid API key provided.
Link copied to clipboard
class InvalidRequestException( val stripeError: StripeError? = null, val requestId: String? = null, val statusCode: Int = 0, message: String? = stripeError?.message, cause: Throwable? = null) : StripeException
Content copied to clipboard
A StripeException indicating that invalid parameters were used in a request.
Link copied to clipboard
class InvalidResponseException( val stripeError: StripeError? = null, val requestId: String? = null, val statusCode: Int = 0, message: String? = stripeError?.message, cause: Throwable? = null) : StripeException
Content copied to clipboard
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? = null) : StripeException
Content copied to clipboard
An Exception that represents max retry is reached when making a request.
Link copied to clipboard
class PermissionException(val stripeError: StripeError, val requestId: String? = null) : StripeException
Content copied to clipboard
A type of AuthenticationException resulting from incorrect permissions to perform the requested action.
Link copied to clipboard
class RateLimitException( val stripeError: StripeError? = null, val requestId: String? = null, message: String? = stripeError?.message, cause: Throwable? = null) : StripeException
Content copied to clipboard
An Exception indicating that too many requests have hit the API too quickly.
Link copied to clipboard
abstract class StripeException( val stripeError: StripeError? = null, val requestId: String? = null, val statusCode: Int = 0, cause: Throwable? = null, message: String? = stripeError?.message) : Exception
Content copied to clipboard
A base class for Stripe-related exceptions.