how do you do exception management
Answers were Sorted based on User's Feedback
Answer / matt s
try - catch - finally. Catch most specific exceptions
first.
Is This Answer Correct ? | 21 Yes | 2 No |
Answer / manish agrahari
try
{
//try and do something here...
}
catch (SomeExeption ex)
{
//Handle the exception and take appropriate action
}
finally
{
//This code will *always* run irrespective if you have
//an exception or not. Usually this is some clean up of
//some sort though.
}
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / bobby
try
catch
finally
Catch most specific exceptions
first.
Is This Answer Correct ? | 5 Yes | 2 No |
What are the uses of namespaces?
what is satelite assembly?
What does async mean in c#?
Can you prevent a class from overriding?
Can you declare a class or a struct as constant?
Explain the difference between abstract class and interface.
What is a float?
Differentiate between copy and default constructor.
What are All kind of access specifiers for a class and for methods
What are Indexers in C#?
0 Answers SwanSoft Technologies,
What is action c#?
How do I know if executenonquery is successful c#?