1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
8 |
|
9 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
10 |
|
11 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
12 |
|
13 | var UnsupportedNetstringTypeError = exports.UnsupportedNetstringTypeError = function (_Error) {
|
14 | _inherits(UnsupportedNetstringTypeError, _Error);
|
15 |
|
16 | function UnsupportedNetstringTypeError(message) {
|
17 | _classCallCheck(this, UnsupportedNetstringTypeError);
|
18 |
|
19 | var _this = _possibleConstructorReturn(this, (UnsupportedNetstringTypeError.__proto__ || Object.getPrototypeOf(UnsupportedNetstringTypeError)).call(this));
|
20 |
|
21 | _this.name = 'UnsupportedNetstringTypeError';
|
22 | _this.message = message || '';
|
23 | return _this;
|
24 | }
|
25 |
|
26 | return UnsupportedNetstringTypeError;
|
27 | }(Error);
|
28 |
|
29 | var InvalidNetstringError = exports.InvalidNetstringError = function (_Error2) {
|
30 | _inherits(InvalidNetstringError, _Error2);
|
31 |
|
32 | function InvalidNetstringError(message) {
|
33 | _classCallCheck(this, InvalidNetstringError);
|
34 |
|
35 | var _this2 = _possibleConstructorReturn(this, (InvalidNetstringError.__proto__ || Object.getPrototypeOf(InvalidNetstringError)).call(this));
|
36 |
|
37 | _this2.name = 'InvalidNetstringError';
|
38 | _this2.message = message || '';
|
39 | return _this2;
|
40 | }
|
41 |
|
42 | return InvalidNetstringError;
|
43 | }(Error); |
\ | No newline at end of file |