Skip to content

Commit db78043

Browse files
committed
Improve ErrorClassification deserialization
Closes gh-1115
1 parent b977bef commit db78043

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-graphql/src/main/java/org/springframework/graphql/client/ResponseMapGraphQlResponse.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ public ErrorClassification getErrorType() {
177177
return graphql.ErrorType.valueOf(classification);
178178
}
179179
catch (IllegalArgumentException ex) {
180-
return org.springframework.graphql.execution.ErrorType.valueOf(classification);
180+
try {
181+
return org.springframework.graphql.execution.ErrorType.valueOf(classification);
182+
}
183+
catch (IllegalArgumentException ex2) {
184+
return ErrorClassification.errorClassification(classification);
185+
}
181186
}
182187
}
183188

0 commit comments

Comments
 (0)