Why are exception in spring and hibernate most unchecked exception?
exception, hibernate, java, spring
Solution
While dealing with most of the database exceptions, there is hardly anything developer can do (I mean write something in catch block to recover from exception). Like database connection problem, incorrect query or column don't exist in table etc problems. So unchecked exceptions rescue developers from adding unnecessary catch blocks. If you want still you can catch desired unchecked exception and leave the rest of them which is not the case with checked exceptions.
Problem
Possible Duplicate: why hibernate changed HibernateException to RuntimeException (unchecked) What is the reason for keeping exception in spring and hibernate as unchecked exception? Is only to reduce the cluttering while coding or there is some other design principal behind it?