@hydro-protocol/hydro-client-js
Version:
Javascript SDK for the Hydro API
37 lines (36 loc) • 1.34 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var ServerError = /** @class */ (function (_super) {
__extends(ServerError, _super);
function ServerError() {
return _super !== null && _super.apply(this, arguments) || this;
}
return ServerError;
}(Error));
exports.ServerError = ServerError;
var APIError = /** @class */ (function (_super) {
__extends(APIError, _super);
function APIError() {
return _super !== null && _super.apply(this, arguments) || this;
}
return APIError;
}(Error));
exports.APIError = APIError;
var AuthError = /** @class */ (function (_super) {
__extends(AuthError, _super);
function AuthError() {
return _super !== null && _super.apply(this, arguments) || this;
}
return AuthError;
}(Error));
exports.AuthError = AuthError;