Skip to main content
Version: 1.18.x

Error Module

Classes

APIError

Defined in: APIError.ts:4

Represents HTTP Error

Constructors

Constructor

> new APIError(message, status?, original?): APIError

Defined in: APIError.ts:23

Create an error from HTTP status and message

Parameters
message

string

status?

number

original?

unknown

Returns

APIError

Properties

message?

> optional message: string

Defined in: APIError.ts:13

Parsed message from the storage engine


original?

> optional original: unknown

Defined in: APIError.ts:18

Original error from HTTP client with the full information


status?

> optional status: number

Defined in: APIError.ts:8

HTTP status of error. If it is empty, it means communication problem