Can we throw exception from catch block
Answers were Sorted based on User's Feedback
Answer / chandan kumar
yes, we can throw exception from catch block
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / chandan kumar
yes we can, i have tried it.it is working fine
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sudipta
Throw statement can be used in the catch block to rethrow
the exception,which has been caught by the catch statement.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / brijen.patel
Yes, we can throw exception from catch block.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prosanta
yes,
follow this example-
static void Main(string[] args)
{
try
{
throw new Exception();
}
catch
{
try
{
Console.WriteLine("This is the 1st
exception");
throw new Exception();
}
catch
{
Console.WriteLine("This is the 2nd
exception");
Console.Read();
}
}
}
output:
This is the 1st exception
This is the 2nd exception
| Is This Answer Correct ? | 5 Yes | 2 No |
Why should you override the tostring() method?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What is a multicast c# delegate?
I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.
What is view state c#?
What is the use of flag in c#?
How do I enforce const correctness in c#?
What are the Uses of CLR
What?s an abstract clas?
What?s the implicit name of the parameter that gets passed into the class? set method?
Does the system.exception class have any cool features?
What is different between Static Constructor and Private Constructor?
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)