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
Who is using .net core?
Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?
Explain what is the difference between web application and enterprise application?
What is the difference between a debug and release build?
Explain asp.net?
Explain the difference between public and static modifiers?
What is static constructor, when it will be fired? And what is its use?
What is connected and diconnected database ?
What is the use of gacutil.exe?
What is the purpose of IClonable interface in .NET?
What does mean by .net framework?
Define code access security (cas)?
What is .net3.5?
Explain what are possible implementations of distributed applications in .net?