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:16:25 +02:00
parent 343ba63fc7
commit 1604a637a5

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 time window 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: " + "[start=" + start + "][end=" + end + "]");
if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start"); if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start: " + "[start=" + start + "][end=" + end + "]" );
this.start = start; this.start = start;
this.end = end; this.end = end;
} }