Package-level declarations
Types
Link 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
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
No valid API key provided.
Link copied to clipboard
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
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
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 LocalStripeException(val displayMessage: String?, val analyticsValue: String?) : StripeException
Link 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
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
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 = DEFAULT_STATUS_CODE, cause: Throwable? = null, message: String? = stripeError?.message) : Exception
A base class for Stripe-related exceptions.