Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Errors

Collection of common custom errors used in multiple contracts IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. It is recommended to avoid relying on the error API for critical functionality. Available since v5.1.

Errors

InsufficientBalance

The ETH balance of the account is not enough to perform the operation.

error InsufficientBalance(uint256 balance, uint256 needed);

FailedCall

A call to an address target failed. The target may have reverted.

error FailedCall();

FailedDeployment

The deployment failed.

error FailedDeployment();

MissingPrecompile

A necessary precompile is missing.

error MissingPrecompile(address);