graphql.GraphqlErrorException Maven / Gradle / Ivy
package graphql;
import graphql.language.SourceLocation;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/**
* A base class for graphql runtime exceptions that also implement {@link graphql.GraphQLError} and can be used
* in a general sense direct or have specialisations made of it.
*
* This is aimed amongst other reasons at Kotlin consumers due to https://github.com/graphql-java/graphql-java/issues/1690
* as well as being a way to share common code.
*/
@PublicApi
public class GraphqlErrorException extends GraphQLException implements GraphQLError {
private final List locations;
private final Map extensions;
private final List