|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
816 bytes
|
| Line | |
|---|
| 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 : */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.