We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a71d072 commit 3a7cf5bCopy full SHA for 3a7cf5b
src/main/java/graphql/GraphQLError.java
@@ -5,11 +5,21 @@
5
6
import java.util.List;
7
8
+/**
9
+ * @see <a href="https://facebook.github.io/graphql/#sec-Errors">GraphQL Spec - 7.2.2 Errors</a>
10
+ */
11
@PublicApi
12
public interface GraphQLError {
13
14
+ /**
15
+ * @return a description of the error intended for the developer as a guide to understand and correct the error
16
17
String getMessage();
18
19
20
+ * @return the location(s) within the GraphQL document at which the error occurred. Each {@link SourceLocation}
21
+ * describes the beginning of an associated syntax element
22
23
List<SourceLocation> getLocations();
24
25
ErrorType getErrorType();
0 commit comments