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
Christian M.
NA
1
0
Exception Handling
Jun 14 2006 12:37 PM
I searched so many sites now and i cant find what im doing wrong. Im trying to create my own exception class. My class would look like this. class UserException : Exception { public UserException() : base() { } public UserException(string Message) : base(Message) { } } And now im calling throw new UserException("test"); in some function with a catch (UserException e) { Console.WriteLine(e.Message); } But it looks like the 'throw' is always crashing. I get this windows thing "'program' has determined an error' or something like that. Whats wrong? Thanks in advance...
Reply
Answers (
0
)
Casting typed collections
Network Folder Access in Windows Service