Open wj331 opened 1 year ago
We do agree that an appropriate error message should have popped up. However, we feel that it is unlikely users would input 0000 for year. Therefore, according to textbook: "Problems caused by extreme user behaviors: If the problems can only happen in case of deliberate sabotage (e.g., user entered a 30-digit telephone number), in which case it should not be considered a bug. However, if such input can be entered by a user mistake, they should not cause harm e.g., such mistakes should not crash the app, corrupt the data, or make it unusable. Problems caused by integer overflows -- apply the guideline in the previous point."
Team chose [response.Rejected
]
Reason for disagreement: I would agree that it is an extreme user behaviour if the input is 10000 or -10000, but the year 0000
is actually a possible input by the user, especially when the user is inputting a year such as 2000
and accidentally typos the first digit from 2
to 0
. This should therefore raise an error message to the user and alert the user. But in this case, nothing was given to me and instead causes a run time exception. A run time exception is dangerous and could potentially cause the program to crash
Furthermore, consider the following point:
As seen, tried to make a booking for year 0000 but return message did not change from previous
Results in an exception as seen above