Try...Catch...help..

jobrandes

Newcomer
Joined
Jan 31, 2003
Messages
1
Location
Sacramento, CA
I am working on a Date class for school that tests .ToString and .Equals redefinition, has an .IsGreaterThan and .IsLessThan function, an .AddDays and .IsLeapYear function, etc etc....it uses a console app also. That is the background. Part of the assignment is if a user (another programmer I suppose) tries to change a property to an invalid value, we can use Try...Catch exceptions to alert them....I don't know a lot about it and I added it in what I think is the correct spot in my code. Everything works perfectly except I don't know how to test the Try...Catch and I don't know if I put it in the correct spot as I don't know much, or anything really, about it. Any help???? Attached is the .zip of the Solution, including the module and class. Thx so much for any help.
 

Attachments

Back
Top