graphql.GraphQLError Maven / Gradle / Ivy
package graphql;
import graphql.language.SourceLocation;
import java.util.List;
import java.util.Map;
/**
* @see GraphQL Spec - 7.2.2 Errors
*/
@PublicApi
public interface GraphQLError {
/**
* @return a description of the error intended for the developer as a guide to understand and correct the error
*/
String getMessage();
/**
* @return the location(s) within the GraphQL document at which the error occurred. Each {@link SourceLocation}
* describes the beginning of an associated syntax element
*/
List getLocations();
/**
* @return an enum classifying this error
*/
ErrorType getErrorType();
/**
* The graphql spec says that the (optional) path field of any error should be a list
* of path entries - http://facebook.github.io/graphql/#sec-Errors
*
* @return the path in list format
*/
default List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy