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 console application with example?
C# is case sensitive, what is mean by case sensitive
What is COM Interoperability?
What is disconnected data architecture in c#?
In which situation(s), the use of "Delegate" is a good idea?
What can you do as a .net developer?
What?s class SortedList underneath?
What's c# ?
What is the difference between string and string in c#?
What is xaml file in c#?
Does c# replace c++?
Tell me something about Exceptions. What is the common exception class?