Oops, the catch block for Exception should look like this:

  |       catch (Exception e) {
  |          Throwable rootCause = e;
  |          Throwable nextCause = null;
  |          while ((nextCause = rootCause.getCause()) != null) {
  |             rootCause = nextCause;
  |          }
  |          if (rootCause instanceof CreateException) {
  |             handleCreateException((CreateException) rootCause);
  |          }
  |          // if the root cause is not a CreateException, rethrow
  |          // the original exception
  |          throw e;
  |       }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872932#3872932

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872932


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to