Class WebSocketProtocolViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.ProtocolViolationException
com.linecorp.armeria.server.websocket.WebSocketProtocolViolationException
- All Implemented Interfaces:
Serializable
@UnstableApi
public final class WebSocketProtocolViolationException
extends ProtocolViolationException
A
ProtocolViolationException
that is raised when failing to decode a WebSocketFrame
.- See Also:
-
Constructor Summary
ConstructorDescriptionWebSocketProtocolViolationException
(WebSocketCloseStatus closeStatus, @Nullable String message) Creates a new instance with theWebSocketCloseStatus
andmessage
.WebSocketProtocolViolationException
(WebSocketCloseStatus closeStatus, @Nullable String message, @Nullable Throwable cause) WebSocketProtocolViolationException
(WebSocketCloseStatus closeStatus, @Nullable Throwable cause) Creates a new instance with theWebSocketCloseStatus
andcause
.Creates a new instance with themessage
. -
Method Summary
Methods inherited from class com.linecorp.armeria.common.ProtocolViolationException
fillInStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebSocketProtocolViolationException
Creates a new instance with themessage
. -
WebSocketProtocolViolationException
public WebSocketProtocolViolationException(WebSocketCloseStatus closeStatus, @Nullable @Nullable String message) Creates a new instance with theWebSocketCloseStatus
andmessage
. -
WebSocketProtocolViolationException
public WebSocketProtocolViolationException(WebSocketCloseStatus closeStatus, @Nullable @Nullable Throwable cause) Creates a new instance with theWebSocketCloseStatus
andcause
. -
WebSocketProtocolViolationException
-
-
Method Details
-
closeStatus
Returns theWebSocketCloseStatus
.
-