mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
improve error msg
This commit is contained in:
parent
353bba0ef4
commit
343ba63fc7
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ public class TimeWindow {
|
|||
*/
|
||||
public TimeWindow(double start, double end) {
|
||||
super();
|
||||
if(start < 0.0 || end < 0.0) throw new IllegalArgumentException("neither start nor end must be < 0.0");
|
||||
if(end < start) throw new IllegalArgumentException("end cannot be smaller than start");
|
||||
if(start < 0.0 || end < 0.0) throw new IllegalArgumentException("neither time window start nor end must be < 0.0");
|
||||
if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start");
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue