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
SR
Hi

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

try
{

}
catch(Exception e)
{

}
regards,

sr
-----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.
try
{

}catch(NullException e)
{

}
catch(FileNotFoundException ee)
{

}

All thoughts welcome,
Nigil
.

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.