Requirement is:
try
{
\\SQL Query
}
catch(Exception i)
{
print a
}
catch(SQLQueryException e)
{
\\SQL Query
}
Qu)I Got Exception in "try" block. Which "catch" statement
(i.e. 1st catch or 2nd catch ) catches the exception and
Why???
Answer Posted / mathew m
it will give error
previous catch clause already catches all exceptions of
this or of a super type ('System.Exception')
b"z System.Exception is the MOTHER -"mathaji" of all
exception.So all will be caught intitally,after that no
exception remains...it will be ok if we put child exception
like "SQLQueryException" before Exception [mathaji:)]
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.
What is the .net framework?
What is entity graph? : Entity framework
Explain the use of Inversion of control (IOC)?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
Describe the gac in the .net framework.
Possible ways to prevent xss attacks on mvc application?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
what is client wins and store wins mode in entity framework concurrency?
What is the use of view model in asp.net mvc?
Can any particular component of .net framework 3.0 be removed?
Explain the advantage of packaging over xcopy in .net?
How to Redirect Tracing to a File
What is RouteConfig.cs in ASP.Net MVC 4?
What is a view engine?