.
() , . , . , , . . , try/catch if.
. , , . , . , Spring .
So the answer is what you are developing. If it is a standalone library, use checked, well-defined exceptions. If this is an application or application framework, you can use runtime exceptions like Spring.
Alexr source
share