title: Where to find list of exceptions and when their occurs
body: <p>I am using <code>SimpleJdbcTemplate</code> to connect to database. Where I can found all exception and also when they are thrown? I know just few for example:</p>
  
  <pre><code>org.springframework.jdbc.BadSqlGrammarException
  </code></pre>
  
  <p>occurs when the SQL query has bad grammar. But I need to know more for example what exception is thrown when database is unreachble or there is lock etc.</p>