2 * @fileoverview Utilities for Doctrine
3 * @author Yusuke Suzuki <utatane.tea@gmail.com>
12 VERSION = require('../package.json').version;
13 exports.VERSION = VERSION;
15 function DoctrineError(message) {
16 this.name = 'DoctrineError';
17 this.message = message;
19 DoctrineError.prototype = (function () {
20 var Middle = function () { };
21 Middle.prototype = Error.prototype;
24 DoctrineError.prototype.constructor = DoctrineError;
25 exports.DoctrineError = DoctrineError;
27 function throwError(message) {
28 throw new DoctrineError(message);
30 exports.throwError = throwError;
32 exports.assert = require('assert');
35 /* vim: set sw=4 ts=4 et tw=80 : */