UNPKG

@cross-nft-marketplace/auction-house-nft-hooks

Version:

Generic react hooks for fetching cross-nft-marketplace auctions, nfts, and data on arbitary 721s. Powers nft-components.

18 lines (17 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestError = void 0; /** * Class for general hook errors for displaying */ class RequestError extends Error { constructor(message, originalError) { super(message); this.name = 'RequestError'; this.originalError = originalError; } getOriginalError() { return this.originalError; } } exports.RequestError = RequestError;