Error Handling in Solidity
Learn how to check for and raise errors in Solidity.
We'll cover the following...
Error handling in Solidity
Solidity provides us with a number of options to check for and handle errors and unwanted behaviors in our smart contract. These options include:
require
assert
revert
Custom errors
Press + to interact
Basically, these four options do the same thing: terminate further execution of code if certain conditions are met (or unmet) and revert the contract to the state it was in before it ...