What is Exception?
How it will come into picture while program is running?
How many Exceptions are supported by the C#?
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
Udaya kumarRank #3,446 · 420 reputationPosted Oct 8, 2014, 10:17 PM EDT
Mohseen Jamal13 reputationPosted Oct 8, 2014, 4:33 PM EDT
Any such error or event at runtime if not handled in code is thrown as exception.
Few exception that i have come across are
NullReferenceException
InvalidOperationException
ArgumentNullException
IndexOutofRangeException
ArgumentException
ExternalException.
Please reply to make this answer better.
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 8, 2014, 8:22 PM EDT
Wim SturkenboomRank #2,527 · 554 reputationPosted Oct 8, 2014, 9:39 PM EDT
http://msdn.microsoft.com/en-us/library/system.exception%28v=vs.110%29.aspx
You can also define your own exceptions, so basically the number of different 'types' is unlimited.
Sahil SharmaRank #742 · 3.1K reputationPosted Oct 8, 2014, 10:39 PM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 23, 2014, 10:34 PM EST
Hi Navratna Pawale,
Read following links it might help you
http://www.csharp-station.com/Tutorial/CSharp/lesson15
http://www.codeproject.com/Articles/125470/Exception-Handling-for-C-Beginners