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

What is assemblies in .net?

1169


Can you edit data in repeater control? How?

1031


What are multicast delegates?

1127


What are the advantages of .net core?

1041


Explain me what is encapsulation?

1143


Can a dll be changed to an exe?

1222


How is threading done in .net?

1064


How to implement CAS in .Net?

2902


What is alias ? Is it used in .Net ?

1160


How com+ related to the dna architecture?

1158


What is difference between static page and dynamic page?

1060


How to Create and Consume a Web Service?

3475


Is .net an object oriented language? What are their components?

999


What is "microsoft intermediate language" (msil)?

1090


What are the purposes of using .net?

1136