UNPKG

@rudderstack/workflow-engine

Version:
20 lines 751 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorWrapStepExecutor = void 0; const errors_1 = require("../../../errors"); const composable_1 = require("./composable"); class ErrorWrapStepExecutor extends composable_1.ComposableStepExecutor { async execute(input, executionBindings) { try { return await super.execute(input, executionBindings); } catch (error) { if (error instanceof errors_1.StepExecutionError) { throw error; } throw errors_1.ErrorUtils.createStepExecutionError(error, this.getStepName()); } } } exports.ErrorWrapStepExecutor = ErrorWrapStepExecutor; //# sourceMappingURL=error_wrap.js.map