You can put logging code in your exception classes constructor I would
think.
But, unless you plan on writing wrappers around all the DOTNET native
exceptions this is not going to be very consistent really.
Why not just use the Exception Handling Application Block:
http://msdn.microsoft.com/library/de.../html/ehab.asp
"TrtnJohn" <Tr******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Is there anyway to tell from inside an exception class when it is thrown?
I'd like to add logging to my application whenever a certain exception is
thrown. I don't want to have to add the logging code everywhere the
exception is caught.