Card Exception
fun CardException(message: String?, type: CardErrorType, declineCode: String?, charge: String?)
Content copied to clipboard
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
decline Code
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?)
Content copied to clipboard
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
decline Code
The decline code for this error, if one exists
charge
The charge code for this error, if one exists