By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,638 Members | 2,241 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,638 IT Pros & Developers. It's quick & easy.

How do I catch all exception in c#?

P: n/a

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.