Improve ErrorClassification deserialization

Closes gh-1115
This commit is contained in:
rstoyanchev
2025-02-12 15:32:59 +00:00
parent b977beffa3
commit db7804375e

View File

@@ -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);
}
}
}