Skip to main content

Class: Error

Extends

  • BaseClient

Constructors

new Error()

new Error(parent?, _id?, _message?): Error

Constructor is used for internal usage only, do not create object from it.

Parameters

parent?

parent.ctx?: Context

parent.queryTree?: QueryTree[]

_id?: ErrorID

_message?: string

Returns

Error

Overrides

BaseClient.constructor

Methods

id()

id(): Promise<ErrorID>

A unique identifier for this Error.

Returns

Promise<ErrorID>


message()

message(): Promise<string>

A description of the error.

Returns

Promise<string>