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
Is c and c# the same?
without modifying source code if we compile again, will it be generated MSIL again?
How does bubble sort work?
What problem does Delegate Solve?
Is std :: string null terminated?
Explain what is the smallest unit of execution in .net?
What benefit do you get from using a primary interop assembly (pia)?
How do I develop c# apps?
What is the use of private constructor in c#?
Why is dll used?
What are types of constructor?
What is static class in C#?
What is a dbml?
Are structs value types or reference types?
Is arraylist thread safe?