As of my engineering practices, we mostly build a global exception handller to handle Java exceptions generally rather than specificly or seperately. In most cases, building this handler follows sequences that starts from bizExceptions to the throwables. In my opinion, spring boot and such backend framework should provide efficiency that programmers stay focused on the bizes instead of spring exception or runtime exceptions. I'd like to define such handlers with a notation and forget about self-contained exceptions, but, the ultimate implemrntation depends on you.
Truly, Jiang Hao
As of my engineering practices, we mostly build a global exception handller to handle Java exceptions generally rather than specificly or seperately. In most cases, building this handler follows sequences that starts from bizExceptions to the throwables. In my opinion, spring boot and such backend framework should provide efficiency that programmers stay focused on the bizes instead of spring exception or runtime exceptions. I'd like to define such handlers with a notation and forget about self-contained exceptions, but, the ultimate implemrntation depends on you.
Truly, Jiang Hao