This packages has the definition of the error classes used by Hardhat, and the list of possible errors.
This module exports:
- The error class
HardhatError
, which has a static fieldERRORS
, with the differentErrorDescriptors
that it accepts. - The interface
ErrorDescriptor
. - The assertion helper
assertHardhatInvariant
.