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 ?

Answers were Sorted based on User's Feedback



Error handling and how this is done ?..

Answer / 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

Error handling and how this is done ?..

Answer / kishore anumala

Error handling is the Main concept of debugging.
This can be done by creating the log files when an
exception is occurred to trace the error where exactly it
occurred..

Example:

try
{
Your code;
}
catch(exception e)
{
Here you can log the error by using object e;
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the use of dll file in c#?

0 Answers  


What is difference between an reference type and value type in C#?

0 Answers   B-Ways TecnoSoft,


How does inheritance work in c#?

0 Answers  


How can you force derived classes to provide new method implementations for virtual methods?

0 Answers  


What?s a satellite assembly?

3 Answers   Visual Soft,


Can you declare the override method static while the original method is non-static?

3 Answers  


Can we overload the main method in c#?

0 Answers  


what is a enumeration in c#

0 Answers   Cognizant,


what is the scope of anonymous type ?

0 Answers   Wipro,


Difference between ByVal and ByRef?

5 Answers   Microsoft,


i want display a given number into Rupees Format Like Given number is : 156735 my Expected output is 1,56,735. how to display?

6 Answers  


Explain the concepts of cts and cls(common language specification).

0 Answers  


Categories