Package com.stripe.android.core.exception
Types
Link copied to clipboard
class APIConnectionException(message: String?, cause: Throwable?) : StripeException
Content copied to clipboard
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
Content copied to clipboard
An Exception that represents an internal problem with Stripe's servers.
Link copied to clipboard
class AuthenticationException constructor(stripeError: StripeError, requestId: String?) : StripeException
Content copied to clipboard
No valid API key provided.
Link copied to clipboard
class InvalidRequestException(stripeError: StripeError?, requestId: String?, statusCode: Int, message: String?, cause: Throwable?) : StripeException
Content copied to clipboard
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
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
An Exception that represents max retry is reached when making a request.
Link copied to clipboard
class PermissionException(stripeError: StripeError, requestId: String?) : StripeException
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
A base class for Stripe-related exceptions.