Hi,
Requirement is:
try
{
\\SQL Query
}
catch(Exception i)
{
print a
}
catch(SQLQueryException e)
{
\\SQL Query
}
Got Exception in "try" block. Which "catch" throws
exception and Why???
Please provide the answer in detail..
Thanks for the help!!!
Answer Posted / djana
I tried I got the following ...
Error 1 A previous catch clause already catches all exceptions of this or of a super type ('System.Exception') E:\dotnet\ConsoleApplication1\ConsoleApplication1\Program.cs 58 20 ConsoleApplication1
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the new thee features of com+ services, which are not there in com (mts)?
What is the use of design pattern?
Can you edit data in repeater control? How?
What is Polymorphism? How does VB.NET/C# achieve polymorphism?
Please explain what is reflection and what is it for?
How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?
Tell us the difference between the while and for loop. Provide a .net syntax for both loops?
What is the difference between a debug and release build?
What is common type system (cts)?
How do you instantiate a complex number?
I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.
What’s different between process and application in .net?
What are the new 2.0 features useful for?
Explain garbage collection?
Write the .net syntax for 'for loop'?