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
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What does the parsefloat function do?
What is IL / CIL / MSIL?
What is satellite assembly? And steps to create satellite assembly?
What is public, private, protected, internal and internal protected?
What is a view? What is the use of it?
When is a class declared as a class abstract?
What is difference between variable and property in c#?
Why do we use lambda expression in c#?
What is xslt in c#?
Is equal in c#?
What is the difference between virtual method and abstract method?
Explain how can you clean up objects holding resources from within the code?
Is int an object in c#?
Do extension methods have to be static?