Class WebSocketDisconnectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.graphql.client.GraphQlClientException
org.springframework.graphql.client.GraphQlTransportException
org.springframework.graphql.client.WebSocketDisconnectedException
- All Implemented Interfaces:
Serializable
WebSocket related
GraphQlTransportException raised when the connection
is closed while a request or subscription is in progress.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketDisconnectedException(String closeStatusMessage, GraphQlRequest request, CloseStatus status) Constructor with an explanation about the closure, along with the request details and the status used to close the WebSocket session. -
Method Summary
Methods inherited from class GraphQlClientException
getRequestMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebSocketDisconnectedException
public WebSocketDisconnectedException(String closeStatusMessage, GraphQlRequest request, CloseStatus status) Constructor with an explanation about the closure, along with the request details and the status used to close the WebSocket session.- Parameters:
closeStatusMessage- the message received when the connection was closedrequest- the ongoing request when the connection was closedstatus- the received close status
-
-
Method Details
-
getCloseStatus
Return theCloseStatusused to close the WebSocket session.
-