UNPKG

2.07 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
9function _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
11function _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
13var 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
29var 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