Kind: Function
Source: atloria-monorepo/packages/doc-automation/src/v2/utils/errors.ts
Utility to wrap unknown errors in PipelineError
Signature
tsfunction wrapError(error: unknown, stage: JobStage, message: string): PipelineError
Parameters
| Name | Type |
|---|---|
error | unknown |
stage | JobStage |
message | string |
Returns: PipelineError
Was this page helpful?