Exception Handling Error Message

Topics: Exception Handling Application Block
Jan 18, 2010 at 10:51 AM

I am trying to implement Exception Handling Replace Handler in Enterprise Library. When the exception arises, the exception message is replaced by the EL defined exception message, but the output goes in exception state. Please let me know how to display the error message on the output screen.

Jan 19, 2010 at 6:45 AM

You can set the PostHandlingAction property to None so that when you catch the exception and call ExceptionPolicy.HandleException, it won't throw the new exception and you can write the error message to the screen.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.