Package io.smallrye.graphql.client
Class InvalidResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.smallrye.graphql.client.InvalidResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnexpectedCloseException
Marks a response that had unexpected contents and the client was unable to properly process it.
This can be either due to an error on the server side (returning non-conformant responses),
but possibly also due to client-side issues, for example
a mismatch between model classes and the schema used on the server.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidResponseException(String message) InvalidResponseException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionGet transport-specific metadata that came from the server with the invalid response.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidResponseException
-
InvalidResponseException
-
InvalidResponseException
-
-
Method Details
-
getTransportMeta
Get transport-specific metadata that came from the server with the invalid response. For HTTP, these are the response headers. It can be null if headers aren't applicable, for example if this is coming from a message received over a WebSocket connection.
-