Error Handling - Reporting and Handling Errors
Channel: ProgramArtist
Date: 2017-08-25

In this episode I talk about how to report and handle errors.
00:09 Why should we think about error handling?
00:47 2 common ways reporting errors
01:26 Handling the 2 ways of error reporting

The differences between the 2 approaches:
02:07 Exception handling is shorter
02:20 Error handling locations
02:53 ErrorCodes break the good path logic flow
03:20 Error propagations
04:03 Understanding the error source
05:19 Finalization code

Other useful tips:
06:54 Java error declarations in method signatures
11:03 Throwing meaningful errors
15:15 When to log the error


You can see all the code here:
https://github.com/slavik57/programming-tips

Programming Tips:
https://www.youtube.com/playlist?list=PLtm06noQc9vnG8OHmFVnXbno2c34tV0JG