weedwick-api
Version:
A helper library to ease the communication with the Riot API
18 lines (17 loc) • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorHandler = void 0;
var ErrorHandler = /** @class */ (function () {
function ErrorHandler(isDebugEnabled) {
var _this = this;
this.handleError = function (e, prefix) {
if (_this.isDebugEnabled) {
console.error(prefix + ': ' + e);
}
};
this.isDebugEnabled = isDebugEnabled;
}
return ErrorHandler;
}());
exports.ErrorHandler = ErrorHandler;
exports.default = ErrorHandler;