Class

ReketError

ReketError(message, details)

Class representing an error that will be returned when the HTTP call fail.

Constructor

# new ReketError(message, details)

Parameters:
Name Type Description
message string

The error message (the reason why the call failed).

details Object

The details of the error returned by the original client.

config Object

The original config of the request.

data Object

The data returned with the error.

headers Object

The response headers returned with the error.

status string

The error status (e.g. 404, 500, ...)

statusText string

The status text of the error (e.g. "Not Found", "Internal Server Error", ...)

View Source error.js, line 1

Extends

  • Error

Members

Object

# config

The original config of the request.

View Source error.js, line 18

Object

# data

The data returned with the error.

View Source error.js, line 26

Object

# headers

The response headers returned with the error.

View Source error.js, line 34

string

# status

The error status (e.g. 404, 500, ...)

View Source error.js, line 42

string

# statusText

The status text of the error (e.g. "Not Found", "Internal Server Error", ...)

View Source error.js, line 50