File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
agent/runtime-attach/src/main/java/com/microsoft/applicationinsights/attach Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments