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
Returns
CatchError
Methods
invoke()
invoke(
req
):Promise
<HttpResponse
>
Defined in: util/catch-error.ts:26
Process the request and return the response asynchronously.