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 execption from catchblock

Answer Posted / praseetha sandeep

yes, we can throw...
catch(Exception e)
{
....
thow e
}

you can also throw new exceptin of different type
catch(IOException c)
{....
throw new FileNotFoundexception(filename)
}

we can also do like
catch(IOException c)
{
throw new FileNotFoundexception(filename,c)
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it true that all c# types derive from a common base class?

1005


What is datatable and dataset in c#?

934


How do you sort a list in c#?

804


How are Windows programs different from normal C-programs?

2138


What's the implicit name of the parameter that gets passed into the set method/property of a class?

941


What is c# and why it is used for?

893


How long will it take to learn c#?

912


What is interface inheritance in c#?

875


What are constants in c#?

907


What does assert() do in c#?

943


Why to use “finally” block in c#?

1026


how to stored and retrive video in Sql server using asp.net c#......?

942


What is system predicate?

829


What is the major difference between a custom control and user control?

986


What is system console writeline in c#?

942