Skip to main content

PageNotFoundError

@quik/http


@quik/http / PageNotFoundError

Class: PageNotFoundError

Defined in: http/src/errors/PageNotFoundError.ts:7

Error thrown when an endpoint is not found or there is no data for the given parameters.

Extends​

  • QTranslatableError

Constructors​

Constructor​

new PageNotFoundError(message?): PageNotFoundError

Defined in: http/src/errors/PageNotFoundError.ts:13

Constructor of the PageNotFoundError.

Parameters​

message?​

string

The message to be returned.

Returns​

PageNotFoundError

Overrides​

QTranslatableError.constructor

Properties​

code​

code: number

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

The code of the error.

Inherited from​

QTranslatableError.code


parameters​

parameters: Record<string, any> = {}

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

The additional features sent to the exception.

Inherited from​

QTranslatableError.parameters

Accessors​

translated​

Get Signature​

get translated(): string

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

Returns​

string

Inherited from​

QTranslatableError.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​

QTranslatableError.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​

QTranslatableError.withContext