Skip to main content

QError

@quik/core


@quik/core / QError

Class: QError

Defined in: errors/QError.ts:4

Extends

  • Error

Extended by

Constructors

Constructor

new QError(message, code?, parameters?): QError

Defined in: errors/QError.ts:14

Parameters

message

string

code?

number

parameters?

Record<string, unknown>

Returns

QError

Overrides

Error.constructor

Properties

code

code: number

Defined in: errors/QError.ts:8

The code of the error.


parameters

parameters: Record<string, any> = {}

Defined in: errors/QError.ts:12

The additional features sent to the exception.

Accessors

translated

Get Signature

get translated(): string

Defined in: errors/QError.ts:37

Returns

string

Methods

toObject()

toObject(): object

Defined in: errors/QError.ts:45

Returns

object

code

code: number

message

message: string

parameters

parameters: Record<string, any>

stack

stack: string

translated

translated: string


withContext()

withContext(context): this

Defined in: errors/QError.ts:26

Attach context metadata to the error parameters.

Parameters

context

Record<string, unknown>

Context data to attach.

Returns

this