TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Avi Ozer
NA
1
0
How can implement class which derived from system.exeption?
Jan 28 2006 11:27 AM
I tried to implement that code:
try
{
CheckDivideByZero(num1, num2);
}
catch (FirstDivideByZeroException)
{
Console.WriteLine("first number is zero");
}
I need that, FirstDivideByZeroException class will handle that Exeption instead of DevideByZeroExeption.
I tried to do that:
public class
FirstDivideByZeroException : DivideByZeroException {}
but when i run the application, that message appear:
"An unhandled exception of type 'System.DivideByZeroException' occurred .."
How can i implement that?
Reply
Answers (
1
)
packet discarding
trying to define even/odd numbers please help