Skip to content

Non-Numeric paid Field Returns Unhelpful Exception #2

@e1121208

Description

@e1121208

Description

The paid/ field should be numerical is not alerted to the user.


Steps to Reproduce

  1. Attempt adding a user with the paid/ field storing non-numeric values.
  2. 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:
Screenshot 2024-11-15 at 4.59.21 PM.png


Suggested Improvement

Consider throwing another command exception in the case of that field being non-numeric.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions