Skip to content

Commit 2c56c2b

Browse files
committed
ConfigurationException
1 parent 482b199 commit 2c56c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/runtime-attach/src/main/java/com/microsoft/applicationinsights/attach/ApplicationInsights.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static String read(InputStream configContentAsInputStream) {
104104
BufferedReader bufferedReader = new BufferedReader(inputStreamReader)) {
105105
return bufferedReader.lines().collect(Collectors.joining(""));
106106
} catch (IOException e) {
107-
throw new IllegalStateException(
107+
throw new ConfigurationException(
108108
"Unexpected issue during loading of JSON configuration file: " + e.getMessage());
109109
}
110110
}
@@ -131,7 +131,7 @@ private static InputStream findJsonConfigFromFileSystemAsStream() {
131131
try {
132132
return Files.newInputStream(defaultFile.toPath());
133133
} catch (IOException e) {
134-
throw new IllegalStateException(
134+
throw new ConfigurationException(
135135
"Unexpected issue during loading of JSON configuration file: " + e.getMessage());
136136
}
137137
}

0 commit comments

Comments
 (0)