Skip to content

Commit cb2746f

Browse files
committed
Refactor exception to a more descriptive one
Taking as a proxy the file Http.java file in the same directory, we have replaced the RuntimeException class for an IllegalStateException containing a descriptive message.
1 parent 37f0404 commit cb2746f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sonar-plugin/bridge/src/main/java/org/sonar/plugins/javascript/bridge/BridgeServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void establishWebSocketConnection() {
259259
this.client.connectBlocking();
260260
} catch (InterruptedException e) {
261261
Thread.currentThread().interrupt();
262-
throw new RuntimeException(e);
262+
throw new IllegalStateException("WebSocket connection interrupted", e);
263263
}
264264
}
265265

0 commit comments

Comments
 (0)