catch (WhateverException e) {
throw e;
}
will simply rethrow the exception you've caught (obviously the surrounding method has to permit this via its signature etc.). The exception will maintain the original stack trace.
or
try
{
...
}
catch (FooException fe){
throw fe;
}
catch (Exception e)
{
...
}
Comments
Post a Comment