Interface: ErrorHookResult

Defined in: hooks/types.ts:343

Result from error hook that can recover or transform the error

Properties

error?

optional error?: Error;

Defined in: hooks/types.ts:352

Transformed error to throw instead

handled?

optional handled?: boolean;

Defined in: hooks/types.ts:347

Whether to suppress the error and continue

recovery?

optional recovery?: ToolExecutionResult;

Defined in: hooks/types.ts:357

Recovery result (for tool errors, replaces failed result)