From 1604a637a5c7be620cb002b1e593b96a72a0af9f Mon Sep 17 00:00:00 2001 From: oblonski Date: Tue, 7 Jul 2015 19:16:25 +0200 Subject: [PATCH] improve error msg --- .../core/problem/solution/route/activity/TimeWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java b/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java index 85ee8754..b8539a37 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java @@ -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 time window start nor end must be < 0.0"); - if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start"); + 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: " + "[start=" + start + "][end=" + end + "]" ); this.start = start; this.end = end; }