Class SubscriptionPublisherException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.graphql.execution.SubscriptionPublisherException
- All Implemented Interfaces:
- Serializable
An exception raised after a GraphQL subscription
 
Publisher ends with an exception, and after that
 exception has been resolved to GraphQL errors.
 The underlying transport, e.g. WebSocket, can handle a
 SubscriptionPublisherException and send a final error message to the
 client with the list of GraphQL errors.
- Since:
- 1.0.1
- Author:
- Mykyta Ivchenko, Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSubscriptionPublisherException(List<graphql.GraphQLError> errors, @Nullable Throwable cause) Constructor with the resolved GraphQL errors and the original exception from the GraphQL subscriptionPublisher.
- 
Method SummaryMethods 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- 
SubscriptionPublisherExceptionConstructor with the resolved GraphQL errors and the original exception from the GraphQL subscriptionPublisher.- Parameters:
- errors- the list of resolved GraphQL errors
- cause- the original exception
 
 
- 
- 
Method Details- 
getErrorsReturn the GraphQL errors the exception was resolved to by the configuredSubscriptionExceptionResolver's. These errors can be included in an error message to be sent to the client by the underlying transport.
- 
toMap
 
-