@PublicApi public class AbortExecutionException extends GraphQLException implements GraphQLError
| Constructor and Description |
|---|
AbortExecutionException() |
AbortExecutionException(java.util.Collection<GraphQLError> underlyingErrors) |
AbortExecutionException(java.lang.String message) |
AbortExecutionException(java.lang.String message,
java.lang.Throwable cause) |
AbortExecutionException(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
ErrorType |
getErrorType() |
java.util.List<SourceLocation> |
getLocations() |
java.util.List<GraphQLError> |
getUnderlyingErrors() |
ExecutionResult |
toExecutionResult()
This is useful for turning this abort signal into an execution result which
is an error state with the underlying errors in it.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensions, getMessage, getPath, toSpecificationpublic AbortExecutionException()
public AbortExecutionException(java.util.Collection<GraphQLError> underlyingErrors)
public AbortExecutionException(java.lang.String message)
public AbortExecutionException(java.lang.String message,
java.lang.Throwable cause)
public AbortExecutionException(java.lang.Throwable cause)
public java.util.List<SourceLocation> getLocations()
getLocations in interface GraphQLErrorSourceLocation
describes the beginning of an associated syntax elementpublic ErrorType getErrorType()
getErrorType in interface GraphQLErrorpublic java.util.List<GraphQLError> getUnderlyingErrors()
public ExecutionResult toExecutionResult()