Skip to content

Commit

Permalink
fix: throwsException strategy throws stack overflow exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Schlathoelter authored and bbortt committed Dec 12, 2024
1 parent c164e19 commit bb291fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void handleError(ClientHttpResponse response, HttpStatusCode statusCod
if (errorHandlingStrategy.equals(ErrorHandlingStrategy.PROPAGATE)) {
throw new HttpErrorPropagatingException(response.getStatusCode(), response.getStatusText(), response.getHeaders(), getResponseBody(response), getCharset(response));
} else if (errorHandlingStrategy.equals(ErrorHandlingStrategy.THROWS_EXCEPTION)) {
super.handleError(response);
super.handleError(response, statusCode, url, method);
} else {
throw new CitrusRuntimeException("Unsupported error strategy: " + errorHandlingStrategy);
}
Expand Down

0 comments on commit bb291fa

Please sign in to comment.