Hi group, is there anyway to catch unhandled exceptions on a class
library project?? thanks in advance.
Bala - 14 Aug 2006 15:13 GMT
Hi,
It isn't exactly clear to me what you intend to do? An exception is
unhandled when there's no "catch" in your code for that kind of
exception. So if you "catch" every exception in your code, you're
done..
If the answer above isn't satisfactory, please rephrase your question a
bit more extensive.
> Hi group, is there anyway to catch unhandled exceptions on a class
> library project?? thanks in advance.
Nicholas Paldino [.NET/C# MVP] - 14 Aug 2006 15:14 GMT
Gonza,
Are you talking about exceptions that traverse the boundary that is
written by your library? If that is the case, then no, there is not, short
of putting all the code in all public methods/properties in a try/catch
block.
Hope this helps.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi group, is there anyway to catch unhandled exceptions on a class
> library project?? thanks in advance.
Chakravarthy - 14 Aug 2006 15:16 GMT
didn't catch with general caught the exception
--------------------------------
try
{
--
--
}
catch(Exception ex)
{
// Didn't caught ?
}
--------------------------------
HTH?

Signature
Every thing is perfect, as long as you share!!!
> Hi group, is there anyway to catch unhandled exceptions on a class
> library project?? thanks in advance.