From 8b383e46a1ed00488766821ee8668a55ddc7c6dd Mon Sep 17 00:00:00 2001 From: al-niessner <1130658+al-niessner@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:05:24 -0800 Subject: [PATCH] 1085: move from internal error to made up error (#1091) * move from internal error to made up error --- src/main/java/gov/nasa/pds/tools/validate/ProblemType.java | 2 ++ src/main/java/gov/nasa/pds/validate/ValidateLauncher.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/gov/nasa/pds/tools/validate/ProblemType.java b/src/main/java/gov/nasa/pds/tools/validate/ProblemType.java index 474019c68..d2801b2c6 100644 --- a/src/main/java/gov/nasa/pds/tools/validate/ProblemType.java +++ b/src/main/java/gov/nasa/pds/tools/validate/ProblemType.java @@ -44,6 +44,8 @@ public enum ProblemType { CONTEXT_REFERENCE_NOT_FOUND("error.label.context_ref_not_found"), + CONNECTION_ERROR("error.connection.registry"), + OUT_OF_MEMORY("error.validation.out_of_memory", ProblemCategory.EXECUTION), INTERNAL_ERROR("error.validation.internal_error"), diff --git a/src/main/java/gov/nasa/pds/validate/ValidateLauncher.java b/src/main/java/gov/nasa/pds/validate/ValidateLauncher.java index d2457a776..39bff15ef 100644 --- a/src/main/java/gov/nasa/pds/validate/ValidateLauncher.java +++ b/src/main/java/gov/nasa/pds/validate/ValidateLauncher.java @@ -120,7 +120,6 @@ import gov.nasa.pds.validate.report.XmlReport; import gov.nasa.pds.validate.util.ToolInfo; import gov.nasa.pds.validate.util.Utility; -import jdk.internal.org.jline.utils.Log; /** * Wrapper class for the Validate Tool. Class handles command-line parsing and querying, in addition @@ -561,7 +560,7 @@ private void getLatestJsonContext() { } catch (IOException ex) { try { ValidationProblem p = new ValidationProblem(new ProblemDefinition(ExceptionType.ERROR, - ProblemType.INTERNAL_ERROR, + ProblemType.CONNECTION_ERROR, "Error connecting to Registry to update registered context products config file. Verify internet connection and try again."), registeredProductsFile.toURI().toURL()); report.record(registeredProductsFile.toURI(), p);