Creating Custom Exception Class in Java|When to go for custom exception class in Java

preview_player
Показать описание
In this video you will learn about how to Create Custom Exception Class in Java using a demo project.
Apart from that this video will answers below questions:
When to go for custom exception class in Java?
Custom Exception as checked Exception or Unchecked Exception?
Points to be Noted about Custom Exception?
Below is the GitHub link to download source:
Рекомендации по теме
Комментарии
Автор

This gives really good guidance on when to create custom exceptions, and whether they should be checked or unchecked, and why. Many tutorials just breeze thru this stuff showing "how" but not "when" or "why", much less "when not to" and "why not to". It makes me trust all of your playlists I have not seen yet more, in advance.

jvsnyc
Автор

I think around 4:46 you use the term "compile-time exception" for "checked exception". Of course, the code is checked that it handles or re-throws it at compile time, but this is still confusing because some people insist on calling compile errors of all sorts "compile time exceptions". I avoid the problem by not using that term for either compile errors nor for checked exceptions, terms which each mean only one thing.

jvsnyc