.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / doctrine / lib / utility.js
1 /*
2  * @fileoverview Utilities for Doctrine
3  * @author Yusuke Suzuki <utatane.tea@gmail.com>
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 /* vim: set sw=4 ts=4 et tw=80 : */