Class: RIDBError

Defined in: ridb_core.d.ts:761

Constructors

Constructor

typescript
1
new RIDBError(err_type, message, code): RIDBError

Defined in: ridb_core.d.ts:776

Parameters

err_type

string

message

string

code

number

Returns

RIDBError

Properties

code

typescript
1
readonly code: any

Defined in: ridb_core.d.ts:820


message

typescript
1
readonly message: string

Defined in: ridb_core.d.ts:823


type

typescript
1
readonly type: string

Defined in: ridb_core.d.ts:826

Methods

free()

typescript
1
free(): void

Defined in: ridb_core.d.ts:770

Returns

void


toJSON()

typescript
1
toJSON(): Object

Defined in: ridb_core.d.ts:765

  • Return copy of self without private attributes.

Returns

Object


toString()

typescript
1
toString(): string

Defined in: ridb_core.d.ts:769

Return stringified version of self.

Returns

string


authentication()

typescript
1
static authentication(err, code): RIDBError

Defined in: ridb_core.d.ts:799

Parameters

err

string

code

number

Returns

RIDBError


error()

typescript
1
static error(err, code): RIDBError

Defined in: ridb_core.d.ts:787

Parameters

err

string

code

number

Returns

RIDBError


from()

typescript
1
static from(err): RIDBError

Defined in: ridb_core.d.ts:781

Parameters

err

any

Returns

RIDBError


hook()

typescript
1
static hook(err, code): RIDBError

Defined in: ridb_core.d.ts:817

Parameters

err

string

code

number

Returns

RIDBError


query()

typescript
1
static query(err, code): RIDBError

Defined in: ridb_core.d.ts:793

Parameters

err

string

code

number

Returns

RIDBError


serialisation()

typescript
1
static serialisation(err, code): RIDBError

Defined in: ridb_core.d.ts:805

Parameters

err

string

code

number

Returns

RIDBError


validation()

typescript
1
static validation(err, code): RIDBError

Defined in: ridb_core.d.ts:811

Parameters

err

string

code

number

Returns

RIDBError