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 DagWanvik
Date Wed, 15 Aug 2007 16:14:27 GMT
Dear Wiki user,

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

The following page has been changed by DagWanvik:
http://wiki.apache.org/db-derby/UnwindExceptionChain

------------------------------------------------------------------------------
  
  How can you get more information?
  
- SQLException supports a chaining model and Derby uses it when multiple exceptions are involved
or more context is needed that just the original exception. Typically the actual problem is
the last exception in the chain, displaying the entire chain will make debugging issues much
easier. Here's an example of how to walk the chain.
+ SQLException supports a chaining model and Derby uses it when multiple exceptions are involved
or more context is needed than just the original exception. Typically the actual problem is
the last exception in the chain, so displaying the entire chain will make debugging issues
much easier. Here's an example of how to walk the chain.
  
  {{{
  catch (SQLException e) {
@@ -19, +19 @@

  } 
  }}}
  
- With JDBC 4.0, causes are supported, cf. Lance Anderson's [http://weblogs.java.net/blog/lancea/archive/2006/02/index.html
blog] on this.
+ With JDBC 4.0, causes are supported, cf. Lance Andersen's [http://weblogs.java.net/blog/lancea/archive/2006/02/index.html
blog] on this.
  The idiom for printing all SQLExceptions and their causes would then look something like
this:
  
  {{{

Mime
View raw message