can we throw execption from catchblock
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ganni
the 'try' block contains the code which may have the
runtime errors. to handle that errors we use 'catch' block.
| Is This Answer Correct ? | 2 Yes | 2 No |
What is the namespcae generally given to the webpage of the .NET Framework ?
Why are strings in c# immutable?
how to retrieve binary data from database (using c#.net and sql server/windows application)
List the difference between the virtual method and the abstract method?
Can we create extension method for interface?
Why static constructor is parameterless in c#?
What?s class SortedList underneath?
What does return do in unity?
In a stored procedure 4 select stmts there.If error comes in one select stmt will remaining normally executes?
in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?
What is session c#?
What is uint64?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)