Skip to content

Latest commit

 

History

History
173 lines (94 loc) · 3.41 KB

_api_.apierror.md

File metadata and controls

173 lines (94 loc) · 3.41 KB

@directus/sdk-js

Globals / "API" / APIError /

Class: APIError

Hierarchy

  • Error

    • APIError

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new APIError(message: string, info: object): APIError

Defined in API.ts:43

Parameters:

message: string

info: object

Name Type
code number | string
data? any
error? IErrorResponse
method string
params? object
url string

Returns: APIError

Properties

Private info

info: object

Defined in API.ts:44

Type declaration:

  • code: number | string

  • data? : any

  • error? : IErrorResponse

  • method: string

  • params? : object

  • url: string


message

message: string

Overrides void

Defined in API.ts:44


name

name: string

Inherited from void

Defined in /Users/rijk/Development/directus/sdk-js/node_modules/typescript/lib/lib.es5.d.ts:973


Optional stack

stack? : string

Inherited from void

Overrides void

Defined in /Users/rijk/Development/directus/sdk-js/node_modules/typescript/lib/lib.es5.d.ts:975


Static Error

Error: ErrorConstructor

Defined in /Users/rijk/Development/directus/sdk-js/node_modules/typescript/lib/lib.es5.d.ts:984

Accessors

code

get code(): string

Defined in API.ts:64

Returns: string


method

get method(): string

Defined in API.ts:60

Returns: string


params

get params(): object

Defined in API.ts:68

Returns: object


url

get url(): string

Defined in API.ts:56

Returns: string

Methods

toString

toString(): string

Defined in API.ts:72

Returns: string