1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | (function () {
|
8 | 'use strict';
|
9 |
|
10 | var VERSION;
|
11 |
|
12 | VERSION = require('../package.json').version;
|
13 | exports.VERSION = VERSION;
|
14 |
|
15 | function DoctrineError(message) {
|
16 | this.name = 'DoctrineError';
|
17 | this.message = message;
|
18 | }
|
19 | DoctrineError.prototype = (function () {
|
20 | var Middle = function () { };
|
21 | Middle.prototype = Error.prototype;
|
22 | return new Middle();
|
23 | }());
|
24 | DoctrineError.prototype.constructor = DoctrineError;
|
25 | exports.DoctrineError = DoctrineError;
|
26 |
|
27 | function throwError(message) {
|
28 | throw new DoctrineError(message);
|
29 | }
|
30 | exports.throwError = throwError;
|
31 |
|
32 | exports.assert = require('assert');
|
33 | }());
|
34 |
|
35 |
|