TerminalException

class TerminalException @JvmOverloads constructor(val errorCode: TerminalException.TerminalErrorCode, val errorMessage: String, cause: Throwable? = null, val apiError: ApiError? = null) : Exception

A TerminalException represents an error thrown during SDK operations and will contain a TerminalErrorCode and an errorMessage to provide more specific details.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Constructors

Link copied to clipboard
constructor(errorCode: TerminalException.TerminalErrorCode, errorMessage: String, cause: Throwable? = null, apiError: ApiError? = null)

Types

Link copied to clipboard

A TerminalErrorCode represents the class of error

Properties

Link copied to clipboard
val apiError: ApiError? = null

If the errorCode is STRIPE_API_ERROR or DECLINED_BY_STRIPE_API, this field will return a representation of the error object, with additional details.

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The error code associated with this exception.

Link copied to clipboard

The error message associated with this exception.

Link copied to clipboard
open val message: String?
Link copied to clipboard

If the exception is related to a PaymentIntent, this will return one of three things:

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard