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
How big is the datatype int in .net?
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?
What is common type system (cts)?
How inheritance works in .net?
Explain cas (code access security)?
What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?
Please explain when should you use .net web forms over asp.net mvc?
What does cli do?
How does u handle this COM components developed in other programming languages in .NET?
Explain the difference between vb and vb.net?
Can "this" be used within a static method?
What is a design pattern and what is it for?
Describe the use of following com+ services jit activation, queued components, object pooling.?
Where does the gac exist ?