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

public class InvalidResponseException extends RuntimeException
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 Details

    • InvalidResponseException

      public InvalidResponseException(String message)
    • InvalidResponseException

      public InvalidResponseException(String message, Throwable cause)
    • InvalidResponseException

      public InvalidResponseException(String message, Throwable cause, Map<String,List<String>> transportMeta)
  • Method Details

    • getTransportMeta

      public Map<String,List<String>> 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.