Skip to content

Commit 3e3d91d

Browse files
committed
Rework after review
1 parent 95a10ec commit 3e3d91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/java_websocket/WebSocketImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ public boolean hasSSLSupport() {
831831
@Override
832832
public SSLSession getSSLSession() {
833833
if (!hasSSLSupport()) {
834-
throw new IllegalStateException("This websocket does use ws instead of wss. No SSLSession available.");
834+
throw new IllegalArgumentException("This websocket uses ws instead of wss. No SSLSession available.");
835835
}
836836
return ((ISSLChannel) channel).getSSLEngine().getSession();
837837
}

0 commit comments

Comments
 (0)