UNPKG

ts-db-helper

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