Hi.....
Ques: What's the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 14, 2011, 6:22 PM EST
http://www.c-sharpcorner.com/Forums/Thread/151135/which-was-a-catch-all-statement-for-any-possible-exception.aspx
http://www.coolinterview.com/interview/41547/
Thanks
VulpesRank #55 · 29.2K reputationPosted Dec 14, 2011, 11:43 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Dec 15, 2011, 11:37 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 15, 2011, 1:20 PM EST
theLizardRank #1,079 · 1.8K reputationPosted Dec 15, 2011, 7:32 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Dec 15, 2011, 7:46 PM EST
Yes, a (1) catch all is better than (2) catching specific errors without a catch all but (3) catching specific errors followed by a catch all is best.