[jboss-dev-forums] [Design of OSGi Integration] - Re: Logging and Exception Handling

adrian@jboss.org do-not-reply at jboss.com
Fri Feb 29 11:46:08 EST 2008


The test is acutally wrong since it expects the FileNotFoundException :-)

You should also be using:

  |       catch (Throwable t)
  |       {
  |          checkDeepThrowable(FileNotFoundException.class, t);
  |       }
  | 
so you get a better error message if the throws the wrong exception.

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

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



More information about the jboss-dev-forums mailing list