"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dieMessage = void 0;
// ets_tracing: off
const Cause_1 = require("../Cause");
const die_1 = require("./die");
/**
 * Returns an effect that dies with a {@link RuntimeError} having the
 * specified text message. This method can be used for terminating a fiber
 * because a defect has been detected in the code.
 */
function dieMessage(message, __trace) {
    return (0, die_1.dieWith)(() => new Cause_1.RuntimeError(message), __trace);
}
exports.dieMessage = dieMessage;
//# sourceMappingURL=dieMessage.js.map