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

What is server side in asp.net?

1023


Define application state variable and session state variable?

1044


What are the different types of sessions in asp.net? Name them?

1229


Can the unique key be null?

1161


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

1093


What is considered a service provider?

993


How is mvc different from asp.net? : Asp.Net MVC

1099


How will you maintain versioning in asp.net 2.0?

1070


How do we assign page-specific attributes?

1198


What parameters can you pass in the url of the api?

1161


How we can force all the validation controls to run?

1036


What is the use of service provider?

1085


How long does an http session last?

985


How do you declare static variable? What is its lifetime?

1003


What are the new data controls in asp.net 2.0?

1007