@nomicfoundation/hardhat-errors
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-next.0 • Public • Published

Hardhat errors

This packages has the definition of the error classes used by Hardhat, and the list of possible errors.

This module exports:

  1. The error class HardhatError, which has a static field ERRORS, with the different ErrorDescriptors that it accepts.
  2. The error class HardhatPluginError, which is the recommended way to handle errors in Hardhat plugins. For convenience, it is re-exported from @nomicfoundation/hardhat/plugins. Plugin developers should import it from this path.
  3. The interface ErrorDescriptor.
  4. The assertion helper assertHardhatInvariant.

Package Sidebar

Install

npm i @nomicfoundation/hardhat-errors

Weekly Downloads

1,080

Version

3.0.0-next.0

License

MIT

Unpacked Size

293 kB

Total Files

18

Last publish

Collaborators

  • galargh
  • alcuadrado
  • fvictorio
  • nomic-foundation-publisher
  • kanej
  • schaable
  • zoeytm