-
Notifications
You must be signed in to change notification settings - Fork 0
Non-Numeric paid Field Returns Unhelpful Exception #2
Copy link
Copy link
Open
Description
Description
The paid/ field should be numerical is not alerted to the user.
Steps to Reproduce
- Attempt adding a user with the
paid/field storing non-numeric values. - Observe that the result display returned does not address the issue.
Expected Behavior
Users should be prompted of the strictly numeric paid field when inputting a non-numeric paid/.
Actual Behavior
However, the result display only reminds user that the decimal place should be at most two and within the price range specified by the program.
Additional Information
Input:
add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/Sunday-1000-1200 s/Biology r/900 paid/lll owed/3000
Output:

Suggested Improvement
Consider throwing another command exception in the case of that field being non-numeric.
Reactions are currently unavailable