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 is cookies in c# asp net?
What is distribute by in hive?
What is constructors, explain with syntax
How do I know if executenonquery is successful c#?
Differentiate between static class and singleton instance?
What does firstordefault mean in c#?
What are the collection types can be used in c#?
How structure objects are destroyed? As GC releases only the objects in stack, and structure is a value type and stored in heap. So how structure objects are released?
What is difference between for and foreach in c#?
Please explain value types and reference types used in c#?
What is thread and explain states of a thread in c#?
Can you override private virtual methods?
11 Answers AROBS Transilvania Software, IBM, Mind Tree, Revalsys,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)