UNPKG

opstack-kit-chains

Version:
18 lines 619 B
import { BaseError } from './base.js'; export class BlockNotFoundError extends BaseError { constructor({ blockHash, blockNumber, }) { let identifier = 'Block'; if (blockHash) identifier = `Block at hash "${blockHash}"`; if (blockNumber) identifier = `Block at number "${blockNumber}"`; super(`${identifier} could not be found.`); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: 'BlockNotFoundError' }); } } //# sourceMappingURL=block.js.map