Socket
Book a DemoInstallSign in
Socket

@nomicfoundation/hardhat-errors

Package Overview
Dependencies
Maintainers
7
Versions
36
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

latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
60K
-44.21%
Maintainers
7
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 09 Sep 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.