Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Who is using .net core?

970


Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?

1121


Explain what is the difference between web application and enterprise application?

1040


What is the difference between a debug and release build?

1271


Explain asp.net?

1093


Explain the difference between public and static modifiers?

1140


What is static constructor, when it will be fired? And what is its use?

1121


What is connected and diconnected database ?

1045


What is the use of gacutil.exe?

1266


What is the purpose of IClonable interface in .NET?

1046


What does mean by .net framework?

1146


Define code access security (cas)?

1010


What is .net3.5?

1045


Explain what are possible implementations of distributed applications in .net?

986


  • Accomm
  • i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;

    1814