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 / kaushik

catch(SQLQueryException e)
{
\\SQL Query
}
would throw exception as a try can have more than one catch
block that the related exception can be handled individually

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any thread in our .net programs?

1071


Who is using .net core?

970


What’s different between process and application in .net?

1066


What is machine.config in .net?

1021


What are the purposes of using .net?

1092


Explain me what is the difference between a class and an object, and how do these terms relate to each other?

939


Different levels of priority provided by .net.

1141


What tools is used to develop .NET applications?

1076


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

2190


Explain how to produce an assembly?

1002


Please explain what is the difference between a class and an object?

1044


What does il do?

957


Explain what is a manifest in .net?

1011


Explain how does assembly versioning work?

1016


Describe the Managed Execution Process

2154