Unhandled exception on class library project

  • Thread starter Thread starter Gonza
  • Start date Start date
G

Gonza

Hi group, is there anyway to catch unhandled exceptions on a class
library project?? thanks in advance.
 
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.
 
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.
 
didn't catch with general caught the exception
--------------------------------
try
{
--
--
}
catch(Exception ex)
{
// Didn't caught ?
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top