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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface graphql.GraphQLError
graphql.GraphQLError.Builder<B extends graphql.GraphQLError.Builder<B>> -
Method Summary
Modifier and TypeMethodDescriptionSet<graphql.language.OperationDefinition.Operation> Return the set of operations that may be executed for this request.graphql.ErrorTypegraphql.language.OperationDefinition.OperationReturn the operation to perform for the current request.Methods inherited from class graphql.execution.AbortExecutionException
getLocations, getUnderlyingErrors, toExecutionResultMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface graphql.GraphQLError
getExtensions, getMessage, getPath, toSpecification
-
Method Details
-
getOperation
public graphql.language.OperationDefinition.Operation getOperation()Return the operation to perform for the current request. -
getAllowedOperations
Return the set of operations that may be executed for this request. -
getErrorType
public graphql.ErrorType getErrorType()- Specified by:
getErrorTypein interfacegraphql.GraphQLError- Overrides:
getErrorTypein classgraphql.execution.AbortExecutionException
-