public class SubscriptionErrorException extends GraphQlTransportException
GraphQlTransportException raised when a subscription
ends with an "error" message. The getErrors() method provides
access to the GraphQL errors from the message payload.| Constructor and Description |
|---|
SubscriptionErrorException(GraphQlRequest request,
List<ResponseError> errors)
Constructor with the request details and the errors listed in the payload
of the
"errors" message. |
| Modifier and Type | Method and Description |
|---|---|
List<ResponseError> |
getErrors()
Return the errors contained in the GraphQL over WebSocket "errors" message.
|
getRequestcontains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SubscriptionErrorException(GraphQlRequest request, List<ResponseError> errors)
"errors" message.public List<ResponseError> getErrors()