Package io.smallrye.graphql.client
Class UnexpectedCloseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.smallrye.graphql.client.InvalidResponseException
io.smallrye.graphql.client.UnexpectedCloseException
- All Implemented Interfaces:
Serializable
Marks a close WebSocket message from the server that was unexpected.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedCloseException(String message, int closeStatusCode) UnexpectedCloseException(String message, Throwable cause, int closeStatusCode) -
Method Summary
Modifier and TypeMethodDescriptionintThe close status code returned by the server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedCloseException
-
UnexpectedCloseException
-
-
Method Details
-
getCloseStatusCode
public int getCloseStatusCode()The close status code returned by the server.
-