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
ConstructorDescriptionWebSocketDisconnectedException
(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 org.springframework.graphql.client.GraphQlClientException
getRequest
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.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 theCloseStatus
used to close the WebSocket session.
-