You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
463 B
12 lines
463 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.`, { name: 'BlockNotFoundError' });
|
|
}
|
|
}
|
|
//# sourceMappingURL=block.js.map
|