The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Exceptions

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

passing exception through

Posted by dagmar on February 28, 2001 at 5:52 AM

Hi,

I am looking for a way to pass some exceptions through by catching them all together.
It should look somewhat like:

public someMethod() throw Exception1,Exception2,Exception3,...
{
....
catch(AllException e)
{
// doSomething
throw e; // but AllException cannot be included in List above!!!
}
}

Thanks in advance.




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us