Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 638d653a authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

update error message in case no completed segment can be found

parent 2067a441
No related branches found
No related tags found
No related merge requests found
......@@ -226,9 +226,10 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
vehicle.Height, vehicle.FloorType == FloorType.LowFloor);
if (!segment.Found) {
throw new VectoException(
"no segment found for vehicle configruation: vehicle category: {0}, axle configuration: {1}, articulated: {2}, primary",
"no segment found for vehicle configruation: vehicle category: {0}, axle configuration: {1}, articulated: {2}, vehicle code: {3}, registered class: {4}, passengersLowerDeck: {5}, height: {6}, lowfloor: {7}. completed",
vehicle.VehicleCategory, axleConfiguration,
vehicle.Articulated);
vehicle.Articulated, vehicle.VehicleCode, vehicle.RegisteredClass.GetLabel(), vehicle.NumberOfPassengersLowerDeck,
vehicle.Height, vehicle.FloorType == FloorType.LowFloor);
}
return segment;
......
......@@ -45,9 +45,10 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl {
completedVehicle.Height, completedVehicle.FloorType == FloorType.LowFloor);
if (!segment.Found) {
throw new VectoException(
"no segment found for vehicle configruation: vehicle category: {0}, axle configuration: {1}, articulated: {2}, primary",
"no segment found for vehicle configruation: vehicle category: {0}, axle configuration: {1}, articulated: {2}, vehicle code: {3}, registered class: {4}, passengersLowerDeck: {5}, height: {6}, lowfloor: {7}. completed",
vehicle.VehicleCategory, _singleBusInputData.PrimaryVehicle.AxleConfiguration,
vehicle.Articulated);
vehicle.Articulated, completedVehicle.VehicleCode, completedVehicle.RegisteredClass.GetLabel(), completedVehicle.NumberOfPassengersLowerDeck,
completedVehicle.Height, completedVehicle.FloorType == FloorType.LowFloor);
}
foreach (var mission in segment.Missions) {
mission.VehicleHeight = completedVehicle.Height + mission.BusParameter.DeltaHeight;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment