CardException

fun CardException(message: String?, type: CardErrorType, declineCode: String?, charge: String?)

Create an instance of this class with the given message

Parameters

message

The message for the exception

type

The type of card error this represents

declineCode

The decline code for this error, if one exists

charge

The charge code for this error, if one exists


fun CardException(throwable: Throwable, type: CardErrorType, declineCode: String?, charge: String?)

Create an instance of this class with the given throwable

Parameters

throwable

The throwable for the exception

type

The type of card error this represents

declineCode

The decline code for this error, if one exists

charge

The charge code for this error, if one exists