UNPKG

@drift-labs/common

Version:

Common functions for Drift

25 lines 840 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoTopMakersError = exports.GeoBlockError = void 0; /** * Error thrown when a method is called while the user is geo-blocked. */ class GeoBlockError extends Error { constructor(methodName) { super(`Method '${methodName}' is not available due to geographical restrictions.`); this.name = 'GeoBlockError'; } } exports.GeoBlockError = GeoBlockError; /** * Error thrown when no top makers are found. The order params provided can still be used as a fallback. */ class NoTopMakersError extends Error { constructor(message, orderParams) { super(message); this.name = 'NoTopMakersError'; this.orderParams = orderParams; } } exports.NoTopMakersError = NoTopMakersError; //# sourceMappingURL=errors.js.map