Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
October 19, 2010
Explain about exception handling?
Posted Date: October 20, 2010 Points: 5
Exception handling is the process of handling the exception in the application.
a is of type string variable
when you try to convert it into integer you will get the InvalidCastException exception.
you can handle that exception by using try-catch
Dim strVar As String = "Asha"
'strVar is of type string
Dim intVar As Integer = strVar
'Trying to convert string to integer
Catch ex As Exception
'Catching the exception
Console.WriteLine("Error in Convertion")
Thanks and Regards,
Posted Date: January 11, 2011 Points: 5
It is simply putting the code where there is a chance of an exception or error in a try block..Try block will be followed by a single or multiple catch blocks which will catch the exception and handles it properly.
Print("file not found");
I think it is pretty clear now..
It just make sure that application don't end abruptly..
It gives a message to naÃÂ¯ve user what has actually happened.
To post reply
Related Questions Related Questions
Best practices of Exception handling in ASP.NET web applications
Exception Handling in Own Massage
Exception Handling in sql server
exception handling in c#.net?
Sql Server Exception Handling
How to use throw () method in exception handling. Give me an example
Exception handling using NLog tool
query handling in asp
ASP.NET - Error Handling in Database Stored Procedures
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend