Skip to main content

Class: BadRequestError

The server cannot or will not process the request due to client error (e.g., malformed request syntax).

Extends

  • EError

Constructors

new BadRequestError()

new BadRequestError(message, errorId?): BadRequestError

Creates an instance of EError.

Parameters

message: string = 'An error occurred'

The error message.

errorId?: string

An optional error ID.

Returns

BadRequestError

Inherited from

EError.constructor

Defined in

packages/core/src/error-handler.ts:11

Properties

errorId?

optional errorId: string;

An optional error ID.

Inherited from

EError.errorId

Defined in

packages/core/src/error-handler.ts:13