Class OperationNotAllowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
graphql.GraphQLException
graphql.execution.AbortExecutionException
org.springframework.graphql.execution.OperationNotAllowedException
All Implemented Interfaces:
graphql.GraphQLError, Serializable

public class OperationNotAllowedException extends graphql.execution.AbortExecutionException
Indicates that the operation for the current request is not allowed by the semantics of the transport layer.
Since:
2.1.0
Author:
Brian Clozel
See Also:
  • Method Details

    • getOperation

      public graphql.language.OperationDefinition.Operation getOperation()
      Return the operation to perform for the current request.
    • getAllowedOperations

      public Set<graphql.language.OperationDefinition.Operation> getAllowedOperations()
      Return the set of operations that may be executed for this request.
    • getErrorType

      public graphql.ErrorType getErrorType()
      Specified by:
      getErrorType in interface graphql.GraphQLError
      Overrides:
      getErrorType in class graphql.execution.AbortExecutionException