title: spring jdbcTemplate how to catch exception?
body: <p>Everything is brilliant until I encounter place where I actually do need to catch exception. When I place </p>
  
  <pre><code>jdbcTemplate.query(something...)
  </code></pre>
  
  <p>in </p>
  
  <pre><code>try{}
  </code></pre>
  
  <p>block I get: </p>
  
  <pre><code> Unreachable catch block for SQLException. This exception is never thrown from the try statement body. 
  </code></pre>
  
  <p>What do I do in this situation?</p>
  
  <pre><code>try{
      personIdReturnedByDb = jdbcTemplate.queryForInt(sql, p.getEmail(),
              p.getName(), p.getSurname(), encPw, dateSql);
  }
  
  catch(SQLException sa){
  
  
  }
  </code></pre>
  
  <p>Thank You,</p>