Improve ErrorClassification deserialization
Closes gh-1115
This commit is contained in:
@@ -177,7 +177,12 @@ class ResponseMapGraphQlResponse extends AbstractGraphQlResponse {
|
||||
return graphql.ErrorType.valueOf(classification);
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
return org.springframework.graphql.execution.ErrorType.valueOf(classification);
|
||||
try {
|
||||
return org.springframework.graphql.execution.ErrorType.valueOf(classification);
|
||||
}
|
||||
catch (IllegalArgumentException ex2) {
|
||||
return ErrorClassification.errorClassification(classification);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user