Package org.yamcs.http.websocket
Class WebSocketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.yamcs.http.websocket.WebSocketException
- All Implemented Interfaces:
Serializable
When an exception occurred while handling an incoming web socket request. Used as a one-time response to a client
request.
- See Also:
-
Constructor Summary
ConstructorDescriptionWebSocketException
(int requestId, String message) WebSocketException
(int requestId, String message, Throwable t) WebSocketException
(int requestId, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachData
(String dataType, com.google.protobuf.Message data) com.google.protobuf.Message
getData()
int
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebSocketException
- Parameters:
requestId
- the client request id, if at least this could be successfully interpreted.
-
WebSocketException
-
WebSocketException
-
-
Method Details
-
getRequestId
public int getRequestId() -
attachData
-
getDataType
-
getData
public com.google.protobuf.Message getData()
-