public final class SubscriptionPublisherException extends NestedRuntimeException
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.
| Constructor and Description |
|---|
SubscriptionPublisherException(List<GraphQLError> errors,
Throwable cause)
Constructor with the resolved GraphQL errors and the original exception
from the GraphQL subscription
Publisher. |
| Modifier and Type | Method and Description |
|---|---|
List<GraphQLError> |
getErrors()
Return the GraphQL errors the exception was resolved to by the configured
SubscriptionExceptionResolver's. |
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SubscriptionPublisherException(List<GraphQLError> errors, Throwable cause)
Publisher.public List<GraphQLError> getErrors()
SubscriptionExceptionResolver's. These errors can be included in
an error message to be sent to the client by the underlying transport.