What's an Exception Wrapper and when to use it?

Topics: Exception Handling Application Block
Jul 17, 2007 at 1:04 PM
Hi, I'm using EL 3.1 and I already did and application that uses Replace Handler and Logging Handler but I don't understand what is an Execption Wrapper and when to use it... Also, if someone can explain to me more about Custom Handler I'll appreciate it...

See ya!@!

Jul 17, 2007 at 3:24 PM

It's not really an "exception wrapper", but a handler that will create a new exception that will have the handled exception as its InnerException. You can learn about this handler, as well as the others, in the "Key Scenarios" topic for the EHAB in the integrated help.

Using it is equivalent to doing something like:

catch(MyException e)
throw new MyNewException(e);

Hope this helps,