-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1990] Move TimeUtil ParseException throwing to ArgsParser::parse me…
…thod (#2075) ArgsParser::parse uses the methods verifyDatesRangeIsCorrect and verifySinceDateIsValid from TimeUtil to throw a ParseException if either of the checks fail. The throwing of an exception in a utility method is a side effect that makes the methods less reusable. Let's move the throwing of ParseException from TimeUtil into ArgsParser.
- Loading branch information
Showing
3 changed files
with
42 additions
and
31 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