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 is assemblies in .net?
Can you edit data in repeater control? How?
What are multicast delegates?
What are the advantages of .net core?
Explain me what is encapsulation?
Can a dll be changed to an exe?
How is threading done in .net?
How to implement CAS in .Net?
What is alias ? Is it used in .Net ?
How com+ related to the dna architecture?
What is difference between static page and dynamic page?
How to Create and Consume a Web Service?
Is .net an object oriented language? What are their components?
What is "microsoft intermediate language" (msil)?
What are the purposes of using .net?