Skip to content

ErrorTransformer

ErrorTransformer = (error) => Promise<Error>

Defined in: src/composer.ts:155

A function that transforms an error into a new error.

In most cases, an ErrorTransformer should first check if it can or should transform the error and return the input error if it cannot or should not transform it.

Error

Promise<Error>