UNPKG

@nktkas/hyperliquid

Version:

Hyperliquid API SDK for all major JS runtimes, written in TypeScript.

15 lines 487 B
/** Base error class for all SDK errors. */ export class HyperliquidError extends Error { constructor(message, options) { super(message, options); this.name = "HyperliquidError"; } } /** Thrown when an error occurs at the transport level (e.g., timeout). */ export class TransportError extends HyperliquidError { constructor(message, options) { super(message, options); this.name = "TransportError"; } } //# sourceMappingURL=_errors.js.map