UNPKG

2.1 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.RequestError = exports.ConnectionError = void 0;
7class ConnectionError extends Error {
8 constructor(message, code) {
9 super(message);
10 this.code = code;
11 }
12}
13exports.ConnectionError = ConnectionError;
14class RequestError extends Error {
15 constructor(message, code) {
16 super(message);
17 this.code = code;
18 }
19}
20exports.RequestError = RequestError;
21//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJDb25uZWN0aW9uRXJyb3IiLCJFcnJvciIsImNvbnN0cnVjdG9yIiwibWVzc2FnZSIsImNvZGUiLCJleHBvcnRzIiwiUmVxdWVzdEVycm9yIl0sInNvdXJjZXMiOlsiLi4vc3JjL2Vycm9ycy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgQ29ubmVjdGlvbkVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICBkZWNsYXJlIGNvZGU6IHN0cmluZyB8IHVuZGVmaW5lZDtcblxuICBkZWNsYXJlIGlzVHJhbnNpZW50OiBib29sZWFuIHwgdW5kZWZpbmVkO1xuXG4gIGNvbnN0cnVjdG9yKG1lc3NhZ2U6IHN0cmluZywgY29kZT86IHN0cmluZykge1xuICAgIHN1cGVyKG1lc3NhZ2UpO1xuXG4gICAgdGhpcy5jb2RlID0gY29kZTtcbiAgfVxufVxuXG5leHBvcnQgY2xhc3MgUmVxdWVzdEVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICBkZWNsYXJlIGNvZGU6IHN0cmluZyB8IHVuZGVmaW5lZDtcblxuICBkZWNsYXJlIG51bWJlcjogbnVtYmVyIHwgdW5kZWZpbmVkO1xuICBkZWNsYXJlIHN0YXRlOiBudW1iZXIgfCB1bmRlZmluZWQ7XG4gIGRlY2xhcmUgY2xhc3M6IG51bWJlciB8IHVuZGVmaW5lZDtcbiAgZGVjbGFyZSBzZXJ2ZXJOYW1lOiBzdH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