@PublicApi public class AbortExecutionException extends GraphQLException implements GraphQLError
Constructor and Description |
---|
AbortExecutionException() |
AbortExecutionException(Collection<GraphQLError> underlyingErrors) |
AbortExecutionException(String message) |
AbortExecutionException(String message,
Throwable cause) |
AbortExecutionException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ErrorType |
getErrorType() |
List<SourceLocation> |
getLocations() |
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, getMessage, getPath, toSpecification
public AbortExecutionException()
public AbortExecutionException(Collection<GraphQLError> underlyingErrors)
public AbortExecutionException(String message)
public AbortExecutionException(Throwable cause)
public List<SourceLocation> getLocations()
getLocations
in interface GraphQLError
SourceLocation
describes the beginning of an associated syntax elementpublic ErrorType getErrorType()
getErrorType
in interface GraphQLError
public List<GraphQLError> getUnderlyingErrors()
public ExecutionResult toExecutionResult()
Copyright © 2019. All rights reserved.