db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "UnwindExceptionChain" by KnutAndersHatlen
Date Tue, 28 Feb 2012 13:16:23 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The "UnwindExceptionChain" page has been changed by KnutAndersHatlen:
http://wiki.apache.org/db-derby/UnwindExceptionChain?action=diff&rev1=9&rev2=10

  causes for exceptions as well as more (distinct) errors, if present. This
  "redundancy" may change in the future.
  
+ JDBC 4.0 also supports walking the exception chain using a for each loop:
+ 
+ {{{
+ #!java numbers=off
+ catch (SQLException e) {
+     for (Throwable t : e) {
+         System.out.println("Message: " + t.getMessage());
+     }
+ }
+ }}}
+ 
+ 
  Inspecting `derby.log` for the stack dump of the error is often also
  useful in understanding what's going on.
  

Mime
View raw message