Class AbortExecutionException

    • Constructor Detail

      • AbortExecutionException

        public AbortExecutionException()
      • AbortExecutionException

        public AbortExecutionException​(java.util.Collection<GraphQLError> underlyingErrors)
      • AbortExecutionException

        public AbortExecutionException​(java.lang.String message)
      • AbortExecutionException

        public AbortExecutionException​(java.lang.String message,
                                       java.lang.Throwable cause)
      • AbortExecutionException

        public AbortExecutionException​(java.lang.Throwable cause)
    • Method Detail

      • getLocations

        public java.util.List<SourceLocation> getLocations()
        Specified by:
        getLocations in interface GraphQLError
        Returns:
        the location(s) within the GraphQL document at which the error occurred. Each SourceLocation describes the beginning of an associated syntax element
      • getUnderlyingErrors

        public java.util.List<GraphQLError> getUnderlyingErrors()
        Returns:
        a list of underlying errors, which may be empty
      • toExecutionResult

        public 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.
        Returns:
        an execution result with the errors from this exception