method ErrorUtils.transformationError
ErrorUtils.transformationError(
transformationType: string,
message: string,
ruleCount?: number,
cause?: Error,
): TransformationError

Creates a TransformationError for transformation failures.

Parameters

transformationType: string
  • The transformation that failed
message: string
  • Error message
optional
ruleCount: number
  • Number of rules being transformed
optional
cause: Error
  • The underlying error

Return Type

TransformationError

Usage

import { ErrorUtils } from ".";