6. Control flow & error handling
Errors, would it not be great if smart contracts were error free? Error handling in Clarity follows a very straightforward paradigm. We have already seen that returning an err
from a public function triggers a revert. That is pretty significant, but understanding the control flow of your smart contract is even more important.
Last updated