Callback fired when a transformation throws an unhandled error.
The hook is an observer only — it cannot suppress or replace the error. After all registered error hooks have been awaited the pipeline re-throws the original error so normal error-handling flow is preserved.
Useful for: error reporting, dead-letter logging, alerting.
(context: TransformationHookContext & { error: Error; }) => void | Promise<void>