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
public class WebSocketException extends Exception
When an exception occurred while handling an incoming web socket request. Used as a one-time response to a client request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketException(int requestId, String message)WebSocketException(int requestId, String message, Throwable t)WebSocketException(int requestId, Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachData(String dataType, com.google.protobuf.Message data)com.google.protobuf.MessagegetData()StringgetDataType()intgetRequestId()org.yamcs.protobuf.WebSocketServerMessage.WebSocketExceptionDatatoWebSocketExceptionData()Converts this exception to a protobuf message-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getRequestId
public int getRequestId()
-
attachData
public void attachData(String dataType, com.google.protobuf.Message data)
-
getDataType
public String getDataType()
-
getData
public com.google.protobuf.Message getData()
-
toWebSocketExceptionData
public org.yamcs.protobuf.WebSocketServerMessage.WebSocketExceptionData toWebSocketExceptionData() throws IOExceptionConverts this exception to a protobuf message- Throws:
IOException
-
-