You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIllegalArgumentException("latest arrival time of vehicle " + id + " must not be negative");
229
+
thrownewIllegalArgumentException("The latest arrival time of vehicle " + id + " must not be negative.");
230
230
this.latestArrival = latest_arrTime;
231
231
returnthis;
232
232
}
@@ -254,17 +254,17 @@ public Builder addSkill(String skill) {
254
254
*/
255
255
publicVehicleImplbuild() {
256
256
if (latestArrival < earliestStart)
257
-
thrownewIllegalArgumentException("latest arrival of vehicle " + id + " must not be smaller than its start time");
257
+
thrownewIllegalArgumentException("The latest arrival time of vehicle " + id + " must not be smaller than its start time.");
258
258
if (startLocation != null && endLocation != null) {
259
259
if (!startLocation.getId().equals(endLocation.getId()) && !returnToDepot)
260
-
thrownewIllegalArgumentException("this must not be. you specified both endLocationId and open-routes. this is contradictory. <br>" +
261
-
"if you set endLocation, returnToDepot must be true. if returnToDepot is false, endLocationCoord must not be specified.");
260
+
thrownewIllegalArgumentException("You specified both the end location and that the vehicle " + id + " does not need to return to its end location. This must not be. " +
261
+
"Either specify end location and return to depot or leave end location unspecified.");
262
262
}
263
263
if (startLocation != null && endLocation == null) {
264
264
endLocation = startLocation;
265
265
}
266
266
if (startLocation == null && endLocation == null)
267
-
thrownewIllegalArgumentException("vehicle requires startLocation. but neither locationId nor locationCoord nor startLocationId nor startLocationCoord has been set");
267
+
thrownewIllegalArgumentException("Every vehicle requires a start location, but vehicle " + id + " does not have one.");
0 commit comments