Hi
What is an exception in .NET?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rewant ChoudharyPosted Sep 10, 2012, 9:16 AM
Try{
//Something code here
}
Catch(exception ee)
{
label.text=ee.Tostring();
}
finally
{
// close connection
}
VulpesPosted Sep 10, 2012, 8:51 AM
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.
Satyapriya NayakPosted Sep 10, 2012, 8:04 AM
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