TransformationHookManager.prototype.onTransformError(hook: TransformErrorHook): this
Register a hook to run when a transformation throws an error.
Error hooks are observers — they cannot suppress or replace the thrown error. After all error hooks complete, the pipeline re-throws the original error unchanged.
hook: TransformErrorHook