"use strict";
/** @format */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerlessError = void 0;
var core_1 = __importDefault(require("../utils/core"));
var Logger = core_1.default.Logger;
var logger = new Logger('S-CLI-ERROR');
var ServerlessError = /** @class */ (function () {
    function ServerlessError(phase, message, params) {
        logger.error(phase + ': ' + message, params);
        process.exit(1);
    }
    return ServerlessError;
}());
exports.ServerlessError = ServerlessError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVybGVzcy1lcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lcnJvci9zZXJ2ZXJsZXNzLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxjQUFjOzs7Ozs7QUFFZCx1REFBaUM7QUFDekIsSUFBQSxNQUFNLEdBQUssY0FBSSxPQUFULENBQVU7QUFDeEIsSUFBTSxNQUFNLEdBQUcsSUFBSSxNQUFNLENBQUMsYUFBYSxDQUFDLENBQUM7QUFFekM7SUFDRSx5QkFBWSxLQUFhLEVBQUUsT0FBZSxFQUFFLE1BQVk7UUFDdEQsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLEdBQUcsSUFBSSxHQUFHLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztRQUM3QyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ2xCLENBQUM7SUFDSCxzQkFBQztBQUFELENBQUMsQUFMRCxJQUtDO0FBTFksMENBQWUifQ==