1414class GraphQLError (Exception ):
1515 """GraphQL Error
1616
17- A GraphQLError describes an Error found during the parse, validate, or
18- execute phases of performing a GraphQL operation. In addition to a message,
19- it also includes information about the locations in a GraphQL document
20- and/or execution result that correspond to the Error.
17+ A GraphQLError describes an Error found during the parse, validate, or execute
18+ phases of performing a GraphQL operation. In addition to a message, it also includes
19+ information about the locations in a GraphQL document and/or execution result that
20+ correspond to the Error.
2121 """
2222
2323 message : str
@@ -29,12 +29,12 @@ class GraphQLError(Exception):
2929 locations : Optional [List ["SourceLocation" ]]
3030 """Source locations
3131
32- A list of (line, column) locations within the source
33- GraphQL document which correspond to this error.
32+ A list of (line, column) locations within the source GraphQL document which
33+ correspond to this error.
3434
35- Errors during validation often contain multiple locations, for example
36- to point out two things with the same name. Errors during execution
37- include a single location, the field which produced the error.
35+ Errors during validation often contain multiple locations, for example to point out
36+ two things with the same name. Errors during execution include a single location,
37+ the field which produced the error.
3838 """
3939
4040 path : Optional [List [Union [str , int ]]]
@@ -43,22 +43,22 @@ class GraphQLError(Exception):
4343 nodes : Optional [List ["Node" ]]
4444 """The source GraphQL document for the first location of this error
4545
46- Note that if this Error represents more than one node, the source
47- may not represent nodes after the first node.
46+ Note that if this Error represents more than one node, the source may not represent
47+ nodes after the first node.
4848 """
4949
5050 source : Optional ["Source" ]
5151 """The source GraphQL document for the first location of this error
5252
53- Note that if this Error represents more than one node, the source may
54- not represent nodes after the first node.
53+ Note that if this Error represents more than one node, the source may not represent
54+ nodes after the first node.
5555 """
5656
5757 positions : Optional [Sequence [int ]]
5858 """Error positions
5959
60- A list of character offsets within the source GraphQL document
61- which correspond to this error.
60+ A list of character offsets within the source GraphQL document which correspond
61+ to this error.
6262 """
6363
6464 original_error : Optional [Exception ]
0 commit comments