Error Handling in Solidity

Learn how to check for and raise errors in Solidity.

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

Get hands-on with 1200+ tech skills courses.