title: Identifying SQLException due to network problem
body: <p>I am developing a web application which uses 3 different databases(Oracle &amp; MSSQL). This application contains spring and hibernate frameworks. In this application if databases goes down or some network issue comes I have to handle differently(While trying to access database). Currently if the above scenario comes  I am getting SQLException as the least cause. How do I identify that SQLException thrown is because of network issue or some query/data issue? </p>