UNPKG

ganache-core

Version:

[![npm Version](https://img.shields.io/npm/v/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![npm Downloads](https://img.shields.io/npm/dm/ganache-core.svg)](https://www.npmjs.com/package/ganache-core) [![Build Status](https://travis-ci.o

20 lines (17 loc) 499 B
class LevelUpOutOfRangeError extends Error { constructor(type, index, len) { const message = "LevelUpArrayAdapter named '" + type + "' index out of range: index " + index + "; length: " + len; super(message); this.name = `${this.constructor.name}:${type}`; this.type = type; } } class BlockOutOfRangeError extends LevelUpOutOfRangeError { constructor(index, len) { super("blocks", index, len); } } module.exports = { LevelUpOutOfRangeError, BlockOutOfRangeError };