forked from nus-cs2103-AY2425S2/ip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-A-MoreTesting' into branch-A-BetterGui
- Loading branch information
Showing
48 changed files
with
933 additions
and
237 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
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
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
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
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
7 changes: 5 additions & 2 deletions
7
src/main/java/bhaymax/exception/command/InvalidDateFormatInCommandException.java
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package bhaymax.exception.command; | ||
|
||
import bhaymax.parser.Parser; | ||
|
||
/** | ||
* Thrown when a date provided by the user is not of valid format | ||
*/ | ||
public class InvalidDateFormatInCommandException extends InvalidCommandFormatException { | ||
public static final String ERROR_MESSAGE = "I don't recognise the format of the date you provided."; | ||
public static final String ERROR_MESSAGE_FORMAT = "I don't recognise the format of the date you provided. " | ||
+ "Format of date should be '%s'."; | ||
|
||
public InvalidDateFormatInCommandException() { | ||
super(InvalidDateFormatInCommandException.ERROR_MESSAGE); | ||
super(String.format(InvalidDateFormatInCommandException.ERROR_MESSAGE_FORMAT, Parser.DATE_INPUT_FORMAT)); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/bhaymax/exception/command/InvalidDateTimeFormatInCommandException.java
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package bhaymax.exception.command; | ||
|
||
import bhaymax.parser.Parser; | ||
|
||
/** | ||
* Thrown when a date and time provided by the user is not of valid format | ||
*/ | ||
public class InvalidDateTimeFormatInCommandException extends InvalidCommandFormatException { | ||
public static final String ERROR_MESSAGE_FORMAT = "I don't recognise the format of the date and time you provided. " | ||
+ "Format of date should be '%s'."; | ||
|
||
/** | ||
* Default constructor for {@code InvalidDateTimeFormatInCommandException} | ||
*/ | ||
public InvalidDateTimeFormatInCommandException() { | ||
super(String.format( | ||
InvalidDateTimeFormatInCommandException.ERROR_MESSAGE_FORMAT, Parser.DATETIME_INPUT_FORMAT)); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/bhaymax/exception/command/MissingDeadlineDueByDateException.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.