Class SubscriptionErrorException
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.SubscriptionErrorException
- All Implemented Interfaces:
- Serializable
WebSocket 
GraphQlTransportException raised when a subscription
 ends with an "error" message. The getErrors() method provides
 access to the GraphQL errors from the message payload.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSubscriptionErrorException(GraphQlRequest request, List<ResponseError> errors) Constructor with the request details and the errors listed in the payload of the"errors"message.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the errors contained in the GraphQL over WebSocket "errors" message.Methods inherited from class org.springframework.graphql.client.GraphQlClientExceptiongetRequestMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
SubscriptionErrorExceptionConstructor with the request details and the errors listed in the payload of the"errors"message.- Parameters:
- request- the request details
- errors- the errors listed in the payload
 
 
- 
- 
Method Details- 
getErrorsReturn the errors contained in the GraphQL over WebSocket "errors" message.
 
-