1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.BadOptionsError = exports.LogentriesError = undefined;
|
7 |
|
8 | var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of");
|
9 |
|
10 | var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
11 |
|
12 | var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
13 |
|
14 | var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
15 |
|
16 | var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
|
17 |
|
18 | var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
19 |
|
20 | var _inherits2 = require("babel-runtime/helpers/inherits");
|
21 |
|
22 | var _inherits3 = _interopRequireDefault(_inherits2);
|
23 |
|
24 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25 |
|
26 | var LogentriesError = exports.LogentriesError = function (_Error) {
|
27 | (0, _inherits3.default)(LogentriesError, _Error);
|
28 |
|
29 | function LogentriesError(msg) {
|
30 | (0, _classCallCheck3.default)(this, LogentriesError);
|
31 |
|
32 | var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(LogentriesError).call(this, msg));
|
33 |
|
34 | Error.captureStackTrace(_this, _this.constructor);
|
35 |
|
36 | _this.name = _this.constructor.name;
|
37 | _this.message = msg;
|
38 | return _this;
|
39 | }
|
40 |
|
41 | return LogentriesError;
|
42 | }(Error);
|
43 |
|
44 | var BadOptionsError = exports.BadOptionsError = function (_LogentriesError) {
|
45 | (0, _inherits3.default)(BadOptionsError, _LogentriesError);
|
46 |
|
47 | function BadOptionsError(opts, msg) {
|
48 | (0, _classCallCheck3.default)(this, BadOptionsError);
|
49 |
|
50 | var _this2 = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BadOptionsError).call(this, msg));
|
51 |
|
52 | _this2.options = opts;
|
53 | return _this2;
|
54 | }
|
55 |
|
56 | return BadOptionsError;
|
57 | }(LogentriesError);
|
58 |
|