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 |
Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The error show in "line of assigning dataset". I don't know what's happen. If anyone know , please share of technical help from someone. Thanks, Horace Trever
What is thread in c#?
What is a base class in C#?
0 Answers TryTechnicals Pvt Ltd,
When do you generally use a class over a struct?
Can private virtual methods be overridden in c#.net?
What namespaces are necessary to create a localized application?
How do you inherit from a class in C#?
Can mvc be used for desktop applications?
Is ram a heap?
ctype(123.34,integer) - should it throw an error? Why or why not?
What is cshtml extension?
What is method in c#?