Skip to main content

ModuleNotLoadedError

@quik/bootstrap


@quik/bootstrap / ModuleNotLoadedError

Class: ModuleNotLoadedError

Defined in: bootstrap/src/errors/ModuleNotLoadedError.ts:6

Error thrown when attempting to use a module that has not been loaded.

Extends​

  • QError

Constructors​

Constructor​

new ModuleNotLoadedError(moduleName): ModuleNotLoadedError

Defined in: bootstrap/src/errors/ModuleNotLoadedError.ts:7

Parameters​

moduleName​

string

Returns​

ModuleNotLoadedError

Overrides​

QError.constructor

Properties​

code​

code: number

Defined in: core/src/errors/QError.ts:8

The code of the error.

Inherited from​

QError.code


parameters​

parameters: Record<string, any> = {}

Defined in: core/src/errors/QError.ts:12

The additional features sent to the exception.

Inherited from​

QError.parameters

Accessors​

translated​

Get Signature​

get translated(): string

Defined in: core/src/errors/QError.ts:37

Returns​

string

Inherited from​

QError.translated

Methods​

toObject()​

toObject(): object

Defined in: core/src/errors/QError.ts:45

Returns​

object

code​

code: number

message​

message: string

parameters​

parameters: Record<string, any>

stack​

stack: string

translated​

translated: string

Inherited from​

QError.toObject


withContext()​

withContext(context): this

Defined in: core/src/errors/QError.ts:26

Attach context metadata to the error parameters.

Parameters​

context​

Record<string, unknown>

Context data to attach.

Returns​

this

Inherited from​

QError.withContext