BraintreeError

BraintreeError

This class is used to report error conditions, frequently as the first parameter to callbacks throughout the Braintree SDK.

Constructor

new BraintreeError(options)

You cannot use this constructor directly. Interact with instances of this class through callbacks.

Parameters:
Name Type Description
options object

Construction options

Source:

Members

(static, readonly) types

Enum for BraintreeError types.

Properties:
Name Type Description
CUSTOMER string

An error caused by the customer.

MERCHANT string

An error that is actionable by the merchant.

NETWORK string

An error due to a network problem.

INTERNAL string

An error caused by Braintree code.

UNKNOWN string

An error where the origin is unknown.

Source:

code :string

A code that corresponds to specific errors.

Source:

details :object

Additional information about the error, such as an underlying network error response.

Source:

message :string

A short description of the error.

Source:

type :BraintreeError.types

The type of error.

Source: