Home Manual Reference Source Repository
public class | source

ApiError

Extends:

Error → ApiError

Direct Subclass:

ValidationError

Errors generated by the API

Constructor Summary

Public Constructor
public

constructor(params: Object)

Member Summary

Public Members
public get

Returns if the error contained a stacktrace that has been parsed This should only be true if the API is in debug mode.

public

Get the request options

public

request: Request

Get the request

public

response: Response

Get the response

public

Http error code

public

trace: Array<{line: Number, file: String, code: String}>: *

Get the parsed stacktrace from the error

public

Error type

Method Summary

Public Methods
public

Display-able string

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
params Object
params.options Object

Request options

params.data Object

Response data

params.request Request

Request

params.response Response

Response

Public Members

public get hasTrace: boolean: * source

Returns if the error contained a stacktrace that has been parsed This should only be true if the API is in debug mode.

Return:

boolean

If the Error contains a stacktrace

public options: Object source

Get the request options

public request: Request source

Get the request

public response: Response source

Get the response

public status: Number source

Http error code

public trace: Array<{line: Number, file: String, code: String}>: * source

Get the parsed stacktrace from the error

Return:

Array<{line: Number, file: String, code: String}>

Stacktrace

public type: String source

Error type

Public Methods

public toString(): string source

Display-able string

Return:

string

Displayable error string