12345678910111213141516171819202122232425262728293031323334 |
- // SPDX-License-Identifier: MIT
- // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
- pragma solidity ^0.8.20;
- /**
- * @dev 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._
- */
- library Errors {
- /**
- * @dev The ETH balance of the account is not enough to perform the operation.
- */
- error InsufficientBalance(uint256 balance, uint256 needed);
- /**
- * @dev A call to an address target failed. The target may have reverted.
- */
- error FailedCall();
- /**
- * @dev The deployment failed.
- */
- error FailedDeployment();
- /**
- * @dev A necessary precompile is missing.
- */
- error MissingPrecompile(address);
- }
|