UNPKG

@rocketflag/node-sdk

Version:

The Node SDK for the RocketFlag service.

29 lines (28 loc) 791 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidResponseError = exports.APIError = exports.NetworkError = void 0; class NetworkError extends Error { constructor(message) { super(message); this.name = "NetworkError"; } } exports.NetworkError = NetworkError; class APIError extends Error { status; statusText; constructor(message, status, statusText) { super(message); this.status = status; this.statusText = statusText; this.name = "APIError"; } } exports.APIError = APIError; class InvalidResponseError extends Error { constructor(message) { super(message); this.name = "InvalidResponseError"; } } exports.InvalidResponseError = InvalidResponseError;