forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from juliusgambe/533-bug-integer-overflow
Add overflow error
- Loading branch information
Showing
6 changed files
with
42 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,19 +42,19 @@ public class CustomerEditCommand extends CustomerCommand { | |
public static final String COMMAND_WORD = CustomerCommand.COMMAND_WORD + " " + "edit"; | ||
|
||
/** | ||
* The text displayed to show what the command does and how to use it. | ||
* The text displayed to show what the command does and how to use it. | ||
*/ | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the details of the person identified " | ||
+ "by the customer ID used in the displayed person list. " | ||
+ "Existing values will be overwritten by the input values.\n\n" | ||
+ "Parameters: CUSTOMER_ID (must be a positive integer) " | ||
+ "[" + PREFIX_NAME + " NAME] " | ||
+ "[" + PREFIX_PHONE + " PHONE] " | ||
+ "[" + PREFIX_EMAIL + " EMAIL] " | ||
+ "[" + PREFIX_ADDRESS + " ADDRESS]\n\n" | ||
+ "Example: " + COMMAND_WORD + " 1 " | ||
+ PREFIX_PHONE + " 91234567 " | ||
+ PREFIX_EMAIL + " [email protected]"; | ||
+ "by the customer ID used in the displayed person list. " | ||
+ "Existing values will be overwritten by the input values.\n\n" | ||
+ "Parameters: CUSTOMER_ID (must be a positive integer and less than 2147483648) " | ||
+ "[" + PREFIX_NAME + " NAME] " | ||
+ "[" + PREFIX_PHONE + " PHONE] " | ||
+ "[" + PREFIX_EMAIL + " EMAIL] " | ||
+ "[" + PREFIX_ADDRESS + " ADDRESS]\n\n" | ||
+ "Example: " + COMMAND_WORD + " 1 " | ||
+ PREFIX_PHONE + " 91234567 " | ||
+ PREFIX_EMAIL + " [email protected]"; | ||
|
||
/** | ||
* The text to the message displayed when the Customer is edited successfuly. | ||
|
@@ -73,6 +73,7 @@ public class CustomerEditCommand extends CustomerCommand { | |
|
||
/** | ||
* Creates a CustomerEditCommand to edit the customers. | ||
* | ||
* @param targetIndex of the person in the filtered person list to edit | ||
* @param customerEditDescriptor details to edit the person with | ||
*/ | ||
|
@@ -86,6 +87,7 @@ public CustomerEditCommand(Index targetIndex, CustomerEditDescriptor customerEdi | |
|
||
/** | ||
* Executes the CustomerEditCommand. | ||
* | ||
* @param model {@code Model} which the command should operate on. | ||
* @return The command result along with the message to be displayed to the user. | ||
* @throws CommandException If the user is not logged in or if the customer does not exist or if the edited | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters