UNPKG

1.83 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || function (d, b) {
3 for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4 function __() { this.constructor = d; }
5 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6};
7/**
8 * A base class for the WrappedException that can be used to identify
9 * a WrappedException from ExceptionHandler without adding circular
10 * dependency.
11 */
12var BaseWrappedException = (function (_super) {
13 __extends(BaseWrappedException, _super);
14 function BaseWrappedException(message) {
15 _super.call(this, message);
16 }
17 Object.defineProperty(BaseWrappedException.prototype, "wrapperMessage", {
18 get: function () { return ''; },
19 enumerable: true,
20 configurable: true
21 });
22 Object.defineProperty(BaseWrappedException.prototype, "wrapperStack", {
23 get: function () { return null; },
24 enumerable: true,
25 configurable: true
26 });
27 Object.defineProperty(BaseWrappedException.prototype, "originalException", {
28 get: function () { return null; },
29 enumerable: true,
30 configurable: true
31 });
32 Object.defineProperty(BaseWrappedException.prototype, "originalStack", {
33 get: function () { return null; },
34 enumerable: true,
35 configurable: true
36 });
37 Object.defineProperty(BaseWrappedException.prototype, "context", {
38 get: function () { return null; },
39 enumerable: true,
40 configurable: true
41 });
42 Object.defineProperty(BaseWrappedException.prototype, "message", {
43 get: function () { return ''; },
44 enumerable: true,
45 configurable: true
46 });
47 return BaseWrappedException;
48}(Error));
49exports.BaseWrappedException = BaseWrappedException;
50//# sourceMappingURL=base_wrapped_exception.js.map
\No newline at end of file