Skip to content

Comandos úteis

flowingts / OnErrorHook

Tipo: OnErrorHook ​

OnErrorHook = (err, ctx, phase) => void | Promise<void>

Definido em: src/core/app/options.ts:21

Tratamento de erros (F-04). phase diz em que etapa a requisição estava: middleware, guard, validation (inclui a leitura do body), handler ou response.

Parâmetros ​

err ​

unknown

ctx ​

Context

phase ​

ErrorPhase

Retorna ​

void | Promise<void>

Licença ISC.