Solidity — All About Try / Catch

Jean Cvllr
9 min readApr 25, 2023
photo by Anthony Durant on Unsplash

This is Part IV of the All About Errors sub-series.

After looking at ways to handle errors at runtime, we will explore a specific type of error handling in Solidity: try {} catch {} . We will see how it can be used when doing to catch errors and creating new contracts.

We will look at how each type of Solidity runtime errors can be caught within the catch block using various syntax.

--

--