@@ -21,7 +21,7 @@ public class GraphqlErrorBuilder {
2121 private String message ;
2222 private List <Object > path ;
2323 private List <SourceLocation > locations = new ArrayList <>();
24- private ErrorTypeClassification errorType = ErrorType .DataFetchingException ;
24+ private ErrorClassification errorType = ErrorType .DataFetchingException ;
2525 private Map <String , Object > extensions = null ;
2626
2727
@@ -74,7 +74,7 @@ public GraphqlErrorBuilder path(List<Object> path) {
7474 return this ;
7575 }
7676
77- public GraphqlErrorBuilder errorType (ErrorTypeClassification errorType ) {
77+ public GraphqlErrorBuilder errorType (ErrorClassification errorType ) {
7878 this .errorType = assertNotNull (errorType );
7979 return this ;
8080 }
@@ -95,11 +95,11 @@ public GraphQLError build() {
9595 private static class GraphqlErrorImpl implements GraphQLError {
9696 private final String message ;
9797 private final List <SourceLocation > locations ;
98- private final ErrorTypeClassification errorType ;
98+ private final ErrorClassification errorType ;
9999 private final List <Object > path ;
100100 private final Map <String , Object > extensions ;
101101
102- public GraphqlErrorImpl (String message , List <SourceLocation > locations , ErrorTypeClassification errorType , List <Object > path , Map <String , Object > extensions ) {
102+ public GraphqlErrorImpl (String message , List <SourceLocation > locations , ErrorClassification errorType , List <Object > path , Map <String , Object > extensions ) {
103103 this .message = message ;
104104 this .locations = locations ;
105105 this .errorType = errorType ;
@@ -118,7 +118,7 @@ public List<SourceLocation> getLocations() {
118118 }
119119
120120 @ Override
121- public ErrorTypeClassification getErrorType () {
121+ public ErrorClassification getErrorType () {
122122 return errorType ;
123123 }
124124
0 commit comments