UNPKG

ts-db-helper

Version:
34 lines 1.05 kB
/** * @class UnsatisfiedRequirementError is thrown when a requirement is unsatisfied * * @see Error * @author Olivier Margarit * @since 0.1 */ var NotImplementedError = /** @class */ (function () { /** * @public * @constructor * @param {string} message message explaining in details error */ function NotImplementedError(message) { var _newTarget = this.constructor; this.message = message; Object.setPrototypeOf(this, _newTarget.prototype); Error.captureStackTrace(this, this.constructor); this.message = message; this.name = 'not implemented error'; } /** * @public * @method toString convert error to string * * @return {string} string represation of the error */ NotImplementedError.prototype.toString = function () { return this.name + '\n' + this.message; }; return NotImplementedError; }()); export { NotImplementedError }; //# sourceMappingURL=not-implemented.error.js.map