Posts tagged 'exceptions'

Tag: exceptions

How to do proper exceptions handling

February 2, 2022

An exception happens when something we expected that should happen, didn’t. We can log them, but printing logs everywhere add a lot of noise, so it’s better to throw errors and handle them in upper levels. Also, a thrown error is easy to check and test, but a log message is not, so they are better for unit testing.

Read More