cs2103aug2014-w13-2j / main

To-Do list program for CS2103T @ NUS
MIT License
1 stars 0 forks source link

[Language] Input Validation #18

Closed XYLau closed 10 years ago

XYLau commented 10 years ago

As a user, I want to have input validation so that I will be alertedd whenever I make an invalid input.

ZiXian92 commented 10 years ago

@ngthnhan For error messages for invalid input, you may want to pass your error message to the IllegalArgumentException's constructor. The controller will then use the exception's getMessage() method to put your error message into ErrorFeedback.

nhan-ng commented 10 years ago

The validation of input is now done implicitly in the process of parsing the input. If the input is not valid, it will be deemed as a part of description