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


Please Help Members By Posting Answers For Below Questions

Explain difference between panel and groupbox classes using .net?

541


What is the purpose of enumerable class in .net?

656


Write the .net syntax for 'for loop'?

568


Explain the differences between server-side code and client-side code.

569


Describe difference between inline and code-behind?

653






What is managed code in .NET?

640


What is the difference between function and stored procedure?

586


What is a serviced component?

571


What is SOAP? How you will do windows and forms authentication?

586


What are pdbs?

588


What is close method? How its different from finalize and dispose?

525


hai, about trading domain and need simple project on trading system. please help me...

1572


Please explain what is the difference between encrypting a password and applying a hashing?

546


Why do we use the “using” statement?

534


Who is using .net core?

536