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...

Can we throw exception from catch block ?

Answer Posted / nilesh

Yes. A throw statement can be used in the catch block to re-
throw the exception, which has been caught by the catch
statement. For example:

catch (InvalidCastException e)
{
throw (e); // Rethrowing exception e
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can exception be handled with out the use of try catch?

1010


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

1013


What are the difference between overriding and overloading?

1084


What is _dopostback in asp net?

962


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

985


What are the Types of chaching. How to implement caching

1027


What are the options in ASP.NET to maintain state?

1125


What is the difference between session.abandon() vs clear()?

983


Can the dictionary object be created in client?s scope ?

2451


Is asp.net and .net same?

974


Define reflection in .net?

1025


How to bind all the binding controls in a page at once in ASP.NET?

977


What is autopost?

990


when a request is made in Life cycle of ASP.NET page .

963


What is difference between URL and URI?

1139