Update error codes

This commit is contained in:
Martha Mitran 2024-01-17 15:25:34 -08:00
parent 62f06929f1
commit 547052413e
2 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ public class ClasspathUtil {
List<String> filenames = new ArrayList<>(); List<String> filenames = new ArrayList<>();
try (InputStream in = ClasspathUtil.class.getResourceAsStream(theDirectory)) { try (InputStream in = ClasspathUtil.class.getResourceAsStream(theDirectory)) {
if (in == null) { if (in == null) {
throw new InternalErrorException(Msg.code(1758) + "Unable to find directory: " + theDirectory); throw new InternalErrorException(Msg.code(2480) + "Unable to find directory: " + theDirectory);
} }
try (BufferedReader br = new BufferedReader(new InputStreamReader(in))) { try (BufferedReader br = new BufferedReader(new InputStreamReader(in))) {
String fileName; String fileName;
@ -187,7 +187,7 @@ public class ClasspathUtil {
} }
} }
} catch (IOException e) { } catch (IOException e) {
throw new InternalErrorException(Msg.code(2479) + e.getMessage()); throw new InternalErrorException(Msg.code(2481) + e.getMessage());
} }
return filenames; return filenames;
} }

View File

@ -378,7 +378,7 @@ public class CommonCodeSystemsTerminologyService implements IValidationSupport {
try { try {
jsonNode = new ObjectMapper().readTree(input); jsonNode = new ObjectMapper().readTree(input);
} catch (JsonProcessingException e) { } catch (JsonProcessingException e) {
throw new ConfigurationException(Msg.code(2480) + e); throw new ConfigurationException(Msg.code(2482) + e);
} }
for (JsonNode mediaTypeNode : jsonNode) { for (JsonNode mediaTypeNode : jsonNode) {