import { Effect } from 'effect';
import { EngineMutationError } from '../errors.js';
import { mutationErrorMessage } from './formula-initialization-predicates.js';
export function formulaInitializationMutationEffect(message, run) {
    return Effect.try({
        try: run,
        catch: (cause) => new EngineMutationError({
            message: mutationErrorMessage(message, cause),
            cause,
        }),
    });
}
//# sourceMappingURL=formula-initialization-effect.js.map