We discuss what are good and bad habits in exception throwing: how to create them, whether to use checked or unchecked, when to use more detailed and less detailed objects, and so on.
00:00 Silly introduction
04:45 Webinar starts
06:50 1) Don't swallow exceptions!
08:47 2) Prefer checked exceptions of unchecked ones
10:30 3) Always chain exceptions
13:11 4) Create and use custom exception classes
16:04 5) Try to catch and re-throw as much as you can
18:37 6) Add textual information to your exceptions
22:20 7) Provide as much contextual information as you can
24:11 8) Scamble sensitive data
31:45 Questions and Answers
The blog is here: https://www.yegor256.com
My books are here: https://www.yegor256.com/books.html
#webinar #java #oop