UNPKG

ts-db-helper

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