@@ -11,7 +11,7 @@ public struct GraphQLError : Error {
11
11
*
12
12
* Appears in the result of `description`.
13
13
*/
14
- let message : String
14
+ public let message : String
15
15
16
16
/**
17
17
* An array of (line: Int, column: Int) locations within the source GraphQL document
@@ -23,36 +23,36 @@ public struct GraphQLError : Error {
23
23
*
24
24
* Appears in the result of `description`.
25
25
*/
26
- let locations : [ SourceLocation ]
26
+ public let locations : [ SourceLocation ]
27
27
28
28
/**
29
29
* An array describing the index path into the execution response which
30
30
* corresponds to this error. Only included for errors during execution.
31
31
*
32
32
* Appears in the result of `description`.
33
33
*/
34
- let path : [ IndexPathElement ]
34
+ public let path : [ IndexPathElement ]
35
35
36
36
/**
37
37
* An array of GraphQL AST Nodes corresponding to this error.
38
38
*/
39
- let nodes : [ Node ]
39
+ public let nodes : [ Node ]
40
40
41
41
/**
42
42
* The source GraphQL document corresponding to this error.
43
43
*/
44
- let source : Source ?
44
+ public let source : Source ?
45
45
46
46
/**
47
47
* An array of character offsets within the source GraphQL document
48
48
* which correspond to this error.
49
49
*/
50
- let positions : [ Int ]
50
+ public let positions : [ Int ]
51
51
52
52
/**
53
53
* The original error thrown from a field resolver during execution.
54
54
*/
55
- let originalError : Error ?
55
+ public let originalError : Error ?
56
56
57
57
public init ( message: String , nodes: [ Node ] = [ ] , source: Source ? = nil , positions: [ Int ] = [ ] ,
58
58
path: [ IndexPathElement ] = [ ] , originalError: Error ? = nil ) {
0 commit comments