" " " " - , , instanceof, , .,.
, (w760) ( ).
, - , ? , ., , . :
- Re-throw., ( )
- RuntimeException
:
Another thing to keep in mind is that if you need to register these exceptions exactly in the place where they occur, and not spread the chain, and that they occur in 20 different places, then they are a cross-cutting issue. You may have a regular method to simply rearrange the exception and then write an aspect to catch and log., Again using Spring makes this easy.
source
share