error-phase hook (bot.onError): receives the failing context and the error.
Type Parameters
Parameters
Returns
void | Promise<void>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Type alias exported by @botmesh/core.
type HookErrorHandler<TCtx> = (ctx, error) => void | Promise<void>;
error-phase hook (bot.onError): receives the failing context and the error.
| Parameter | Type |
|---|---|
ctx | TCtx |
error | unknown |
void | Promise<void>