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
343ba63fc7
commit
1604a637a5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue