Solidity — All About Errors Handling

Jean Cvllr
17 min readApr 15, 2023
photo by Sarah Kilian on Unsplash

This article is Part III of the “All About Errors” sub-series.

After looking at the different type of errors (Compile vs Runtime Errors), the different type of Solidity errors and the distinctions between them, we will now look at the different ways to handle them.

Solidity provides multiple built-in methods to handle errors, including assert(), require() and revert(). We…