Skip to content

Taxum / @taxum/core / util / CatchError

Class: CatchError

Defined in: util/catch-error.ts:19

A service that wraps another service and maps any errors occurring during its invocation to an appropriate HTTP response.

Implements

Constructors

Constructor

new CatchError(inner): CatchError

Defined in: util/catch-error.ts:22

Parameters

inner

HttpService

Returns

CatchError

Methods

invoke()

invoke(req): Promise<HttpResponse>

Defined in: util/catch-error.ts:26

Process the request and return the response asynchronously.

Parameters

req

HttpRequest

Returns

Promise<HttpResponse>

Implementation of

Service.invoke