import { Effect } from 'effect';
import { EngineFormulaBindingError } from '../errors.js';
import { formulaBindingErrorMessage } from './formula-binding-plan-helpers.js';
export function formulaBindingEffect(message, operation) {
    return Effect.try({
        try: operation,
        catch: (cause) => new EngineFormulaBindingError({
            message: formulaBindingErrorMessage(message, cause),
            cause,
        }),
    });
}
//# sourceMappingURL=formula-binding-effect.js.map