@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
38 lines • 1.76 kB
JavaScript
;
// ------------------------------------------------------------------------------
// Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// ------------------------------------------------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
exports.LifecycleError = void 0;
var tslib_1 = require("tslib");
/**
* Lifecycle Error
*/
var LifecycleError = /** @class */ (function (_super) {
tslib_1.__extends(LifecycleError, _super);
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* Creates a Lifecycle Error
*
* @param message The error message
*/
function LifecycleError(message) {
var _this = _super.call(this) || this;
_this.name = "LifecycleError";
_this.message = message;
return _this;
}
/*============================================================================*/
/* Public Static Properties */
/*============================================================================*/
LifecycleError.SYNC_HANDLER_ARG_MISMATCH = "When and After handlers must accept 0 or 1 arguments";
LifecycleError.LATE_HANDLER_ERROR_MESSAGE = "Handler added late and will never fire";
return LifecycleError;
}(Error));
exports.LifecycleError = LifecycleError;
//# sourceMappingURL=LifecycleError.js.map