Skip to main content

Class: ExpectationFailedError

The server cannot meet the requirements of the Expect request-header field.

Extends

  • EError

Constructors

new ExpectationFailedError()

new ExpectationFailedError(message, errorId?): ExpectationFailedError

Creates an instance of EError.

Parameters

message: string = 'An error occurred'

The error message.

errorId?: string

An optional error ID.

Returns

ExpectationFailedError

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