Skip to content

Commit 3a7cf5b

Browse files
tlovett-rmnandimarek
authored andcommitted
Add javadoc to GraphQLError based on GraphQL Spec
1 parent a71d072 commit 3a7cf5b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/graphql/GraphQLError.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@
55

66
import java.util.List;
77

8+
/**
9+
* @see <a href="https://facebook.github.io/graphql/#sec-Errors">GraphQL Spec - 7.2.2 Errors</a>
10+
*/
811
@PublicApi
912
public interface GraphQLError {
1013

14+
/**
15+
* @return a description of the error intended for the developer as a guide to understand and correct the error
16+
*/
1117
String getMessage();
1218

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+
*/
1323
List<SourceLocation> getLocations();
1424

1525
ErrorType getErrorType();

0 commit comments

Comments
 (0)