package graphql.execution;

import graphql.GraphQLException;
import graphql.PublicApi;

/**
 * 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.
 */
@PublicApi
public class UnknownOperationException extends GraphQLException {

    public UnknownOperationException(String message) {
        super(message);
    }
}

@@ -40,50 +40,205 @@
 hql.
-GraphQLException;%0Aimport graphql.PublicApi
+ErrorClassification;%0Aimport graphql.ErrorType;%0Aimport graphql.GraphQLError;%0Aimport graphql.GraphQLException;%0Aimport graphql.PublicApi;%0Aimport graphql.language.SourceLocation;%0A%0Aimport java.util.List
 ;%0A%0A/
@@ -496,18 +496,41 @@
 ception 
+implements GraphQLError 
 %7B
-%0A
 %0A    pub
@@ -606,11 +606,213 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public List%3CSourceLocation%3E getLocations() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public ErrorClassification getErrorType() %7B%0A        return ErrorType.ValidationError;%0A    %7D
 %0A%7D%0A

Make UnknownOperationException implement GraphQLError (#2009)