I recently stepped through the QuickStart code provided with the Microsoft Enterprise Library 4.1 - October 2008 release and noticed that the ExceptionPolicy.HandleException method actually throws a new exception rather than recommends a rethrow (by returning
the value of true) when the specified exception policies has a PostHandlingAction of ThrowNewExeption. So, why would you need to test rethrow? Thank you.
/// Demonstrates handling of exceptions coming out of a layer. The policy
/// demonstrated here will show how original exceptions can be wrapped
/// with a different exception before being propagated back out.
// Quick Start is configured so that the Wrap Policy will
// log the exception and then recommend a rethrow.
bool rethrow =