|Registered:||Sep 10, 2002|
|Given in last 30 days||0|
|Received in last 30 days||0|
|Last 30 days:||0|
I have the B&S assignment, and I thought that the Data class could only throw DuplicateKeyException, RecordNotFoundException, and SecurityException. I don't think we can add a new exception, in your case: DataAccessException. I want to add a similar new exception, but do not know how to fit it in with the required design. Currently, my Data class, which accesses the file, is eating the IOException. I want to change this, by wrapping the IOException in a DatabaseException, but how can the new exception be thrown without violating the requirements?
Thanks for any input.
A clear design, such as will be readily understood by junior programmers, will be preferred to a complex one,...
This will not work properly over the end of year, try it next week.
Solutions involving 86400000 will not work properly over the change to and from daylight saving time.
I use the Excel format since its easy to validate the conversion. The conversion is not valid for years before 1582 or after 4000. There are much better versions of this algorithm available that account for the year which the Gregorian calendar was adopted and for the adjustments after the year 4000.
I think it is always better to be in the safe side, hard code your default data.
So I think allowing rebooking, is a bit risky as business logic
?all properties must be set through a GUI