Class UnknownOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
graphql.GraphQLException
graphql.execution.UnknownOperationException
- All Implemented Interfaces:
GraphQLError, Serializable
This is thrown if multiple operations are defined in the query and
the operation name is missing or there is no matching operation name
contained in the GraphQL query.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface GraphQLError
GraphQLError.Builder<B> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GraphQLError
getExtensions, getMessage, getPath, toSpecification
-
Constructor Details
-
UnknownOperationException
-
-
Method Details
-
getLocations
- Specified by:
getLocationsin interfaceGraphQLError- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocationdescribes the beginning of an associated syntax element
-
getErrorType
- Specified by:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-