Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Error handling and how this is done ?

Answer Posted / senthil kumar

Error handling is the display the unknown error during the
runtime.here we can use the exception to handle the
error.we also have tje throw exception but its very
difficult to predict the place to identify the error.

try
{
//set of processing code
}
catch(Exception e)
{
Console.WriteLine("Error:"+e.Message);
}
finaly
{
Console.WriteLine("Example Program for the Error
Handling");
}

here set of codes will be executed if any error has found
it will throw the exception from catch block.But finally
will executed compulsarily whether error occured or not
event if you teriminate the control outside from block.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c and c# the same?

913


without modifying source code if we compile again, will it be generated MSIL again?

931


How does bubble sort work?

908


What problem does Delegate Solve?

988


Is std :: string null terminated?

917


Explain what is the smallest unit of execution in .net?

939


What benefit do you get from using a primary interop assembly (pia)?

975


How do I develop c# apps?

913


What is the use of private constructor in c#?

905


Why is dll used?

1001


What are types of constructor?

886


What is static class in C#?

1028


What is a dbml?

902


Are structs value types or reference types?

1065


Is arraylist thread safe?

882