"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.fail = fail;

var _primitives = /*#__PURE__*/require("@effect/core/stm/STM/definition/primitives");

/**
 * Returns a value that models failure in the transaction.
 *
 * @tsplus static ets/STM/Ops fail
 */
function fail(e) {
  return new _primitives.STMEffect(() => {
    throw new _primitives.STMFailException(e());
  });
}
//# sourceMappingURL=fail.js.map