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
public class UnexpectedCloseException extends InvalidResponseException
Marks a close WebSocket message from the server that was unexpected.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedCloseException(String message, int closeStatusCode)UnexpectedCloseException(String message, Throwable cause, int closeStatusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCloseStatusCode()The 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
-
-