You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@nomicfoundation/hardhat-errors

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomicfoundation/hardhat-errors

The different errors that Hardhat can throw

Source
npmnpm
Version
3.0.7
Version published
Weekly downloads
53K
-4.1%
Maintainers
0
Weekly downloads
 
Created
Source

hardhat-errors

⚠️ This package is an internal Hardhat component and it's not meant to be used directly.

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 field ERRORS, with the different ErrorDescriptors that it accepts.
  • 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.
  • The interface ErrorDescriptor.
  • The assertion helper assertHardhatInvariant.

Keywords

ethereum

FAQs

Package last updated on 25 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts