From 3be63a7b7ae75ed2a1040e9aa2d0e774294af89c Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Tue, 25 Jul 2023 19:34:23 +0200 Subject: [PATCH 1/2] fix: new shared stops error types --- src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java b/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java index 477c034dc..adb83f674 100644 --- a/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java +++ b/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java @@ -85,6 +85,11 @@ public enum NewGTFSErrorType { // MTC-specific errors. FIELD_VALUE_TOO_LONG(Priority.MEDIUM, "Field value has too many characters."), + // Shared Stops-specifc errors. + MULTIPLE_SHARED_STOPS_GROUPS(Priority.HIGH, "GTFS entity belongs to more than one shared-stop group."), + SHARED_STOP_GROUP_MUTLIPLE_PRIMARY_STOPS(Priority.HIGH, "Shared-stop group has multiple primary stops."), + SHARED_STOP_GROUP_ENTITY_DOES_NOT_EXIST(Priority.MEDIUM, "Shared-stop group entity does not exist."), + // Unknown errors. OTHER(Priority.LOW, "Other errors."); From 9903b3b63ad26d135b5a55cf17e595557db037bb Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Fri, 28 Jul 2023 13:42:30 +0200 Subject: [PATCH 2/2] refactor: imporve error messages --- src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java b/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java index adb83f674..80154ae83 100644 --- a/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java +++ b/src/main/java/com/conveyal/gtfs/error/NewGTFSErrorType.java @@ -86,9 +86,9 @@ public enum NewGTFSErrorType { FIELD_VALUE_TOO_LONG(Priority.MEDIUM, "Field value has too many characters."), // Shared Stops-specifc errors. - MULTIPLE_SHARED_STOPS_GROUPS(Priority.HIGH, "GTFS entity belongs to more than one shared-stop group."), - SHARED_STOP_GROUP_MUTLIPLE_PRIMARY_STOPS(Priority.HIGH, "Shared-stop group has multiple primary stops."), - SHARED_STOP_GROUP_ENTITY_DOES_NOT_EXIST(Priority.MEDIUM, "Shared-stop group entity does not exist."), + MULTIPLE_SHARED_STOPS_GROUPS(Priority.HIGH, "A GTFS stop belongs to more than one shared-stop group."), + SHARED_STOP_GROUP_MUTLIPLE_PRIMARY_STOPS(Priority.HIGH, "A Shared-stop group has multiple primary stops."), + SHARED_STOP_GROUP_ENTITY_DOES_NOT_EXIST(Priority.MEDIUM, "The stop referenced by a shared-stop does not exist."), // Unknown errors. OTHER(Priority.LOW, "Other errors.");