AirwallexError

data class AirwallexError(val code: String? = null, val source: String? = null, val message: String? = null) : AirwallexModel, Parcelable, Serializable

Airwallex uses conventional HTTP response codes to indicate the success or failure of an API request. Typically a status code in the 2xx range indicates success, status codes in the 4xx range indicate an error that has been triggered due to the information provided (for example; a parameter does not meet the validation requirements or was not provided), and status codes in the 5xx range indicate an error with our servers.

Constructors

Link copied to clipboard
constructor(code: String? = null, source: String? = null, message: String? = null)

Properties

Link copied to clipboard
val code: String? = null

Error code

Link copied to clipboard
val message: String? = null

Description of the error

Link copied to clipboard
val source: String? = null

Name of the request parameter that caused the error

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)