1
0
Fork 0
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:
oblonski 2015-07-07 19:13:34 +02:00
parent 353bba0ef4
commit 343ba63fc7

View file

@ -49,8 +49,8 @@ public class TimeWindow {
*/ */
public TimeWindow(double start, double end) { public TimeWindow(double start, double end) {
super(); super();
if(start < 0.0 || end < 0.0) throw new IllegalArgumentException("neither start nor end must be < 0.0"); 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("end cannot be smaller than start"); if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start");
this.start = start; this.start = start;
this.end = end; this.end = end;
} }