Exception Handling Block questions

Topics: Exception Handling Application Block
Jan 12, 2009 at 3:13 PM
I am using the .netTiers framework and like to implement exception handling using Enterprise Lib Exception handling applicaiton block

Is there a way to pass information to the Custom Handlers (the ones that implements IExceptionHandler). I'd like to pass the Entity to the custom handlers ..... is this possible ?
Jan 13, 2009 at 7:47 AM
I think you can only pass constant values through the Attributes property.  The contents of this collection will be the value of the NameValueCollection parameter in the constructor of your custom handler.

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
Jan 13, 2009 at 1:51 PM
yeah i saw the NameValueCollection, but like you said it's constant value configured in config file.

I saw something though, in the catch block in the exception there is a Data property. I guess I could use that property to add whatever and retrieve them in the custom handlers.

But not sure if it's a good practice ....

Thanks for the reply