Skip to content

Commit

Permalink
Improve ErrorClassification deserialization
Browse files Browse the repository at this point in the history
Closes gh-1115
  • Loading branch information
rstoyanchev committed Feb 12, 2025
1 parent b977bef commit db78043
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ public ErrorClassification getErrorType() {
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);
}
}
}

Expand Down

0 comments on commit db78043

Please sign in to comment.