ErrorWithResponse

Error container returned when the Braintree server returns a 422 Unprocessible Entity. A 422 occurs when a request is properly formed, but the server was unable to take the requested action due to bad user data.

ErrorWithResponse parses the server's error response and exposes the errors.

Types

Link copied to clipboard
object Companion

Properties

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

The full error response as a String.

Link copied to clipboard

All the field errors.

Link copied to clipboard
open override var message: String?

Human readable top level summary of the error.

Link copied to clipboard

HTTP status code from the Braintree gateway.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard

Method to extract an error for an individual field, e.g. creditCard, customer, etc.

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
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)