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 Summary
ConstructorsConstructorDescriptionSubscriptionErrorException(GraphQlRequest request, List<ResponseError> errors) Constructor with the request details and the errors listed in the payload of the"errors"message. -
Method Summary
Modifier and TypeMethodDescriptionReturn the errors contained in the GraphQL over WebSocket "errors" message.Methods inherited from class GraphQlClientException
getRequestMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SubscriptionErrorException
Constructor with the request details and the errors listed in the payload of the"errors"message.- Parameters:
request- the request detailserrors- the errors listed in the payload
-
-
Method Details
-
getErrors
Return the errors contained in the GraphQL over WebSocket "errors" message.
-