Skip to content

Commit a97965d

Browse files
author
Oleg Aleksandrov
committed
Issue-1160 Add whole exception not just exception message when converting Erro to Exception
1 parent e8ef74a commit a97965d

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
@@ -417,7 +417,7 @@ private void decodeFrames(ByteBuffer socketBuffer) {
417417
throw e;
418418
} catch (Error e) {
419419
log.error("Closing web socket due to an error during frame processing");
420-
Exception exception = new Exception(e.getMessage());
420+
Exception exception = new Exception(e);
421421
wsl.onWebsocketError(this, exception);
422422
close(CloseFrame.UNEXPECTED_CONDITION, exception.getMessage());
423423
}

0 commit comments

Comments
 (0)