Hi
What is an exception in .NET?
Exception in .NET
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 Sep 10, 2012, 4:04 AM EDT
Please refer the below links
http://msdn.microsoft.com/en-us/library/system.exception%28v=vs.71%29.aspx
http://www.codeproject.com/Articles/9538/Exception-Handling-Best-Practices-in-NET
Thanks
VulpesRank #55 · 29.2K reputationPosted Sep 10, 2012, 4:51 AM EDT
Exceptions can usually be caught using a try/catch/finally statement though there are some exceptions which are fatal - such as a stack overflow exception - because they would otherwise leave the application in an unstable condition.
In .NET all exceptions derive from the System.Exception class. As well as those defined in the .NET Framework, you can define your own custom exceptions if you wish.
Rewant ChoudharyRank #4,270 · 354 reputationPosted Sep 10, 2012, 5:16 AM EDT
Try{
//Something code here
}
Catch(exception ee)
{
label.text=ee.Tostring();
}
finally
{
// close connection
}