467,087 Members | 1,230 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,087 developers. It's quick & easy.

How do I catch all exception in c#?


Better to stick to the way u have done it currently . But
just in case u need it


catch(Exception e)


-----Original Message-----
hi all..

I am just wondering how can I catch all exceptions?
do I have do write all exceptions in the try and catch statement?
currently I am using the following statement.

}catch(NullException e)

catch(FileNotFoundException ee)


All thoughts welcome,

Jul 19 '05 #1
  • viewed: 5109

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Gary.Hu | last post: by
5 posts views Thread by Jacek Dziedzic | last post: by
11 posts views Thread by Pohihihi | last post: by
23 posts views Thread by VB Programmer | last post: by
3 posts views Thread by will | last post: by
2 posts views Thread by Ralph Krausse | last post: by
32 posts views Thread by cj | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.