method TransformationHookManager.prototype.onTransformError
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.

Parameters

Return Type

this

this for fluent chaining.

Usage

import { TransformationHookManager } from ".";