Skip to content

Commit

Permalink
restore exception handling to pre-#122 state (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
iaik-jheher authored Sep 6, 2024
1 parent 0576f84 commit f178a36
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.hc.core5.http.HttpStatus;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.http.NoHttpResponseException;
import org.apache.hc.core5.http.ParseException;
import org.apache.hc.core5.http.ProtocolException;
import org.apache.hc.core5.http.io.entity.EntityUtils;
import org.apache.hc.core5.http.message.BasicNameValuePair;
Expand Down Expand Up @@ -165,8 +164,8 @@ public String handleSLRequest(PdfAs4SLRequest slRequest) throws SignatureExcepti
} else {
return ATrustParser.Parse(request.getUri(), contentType.getMimeType(), entityBody);
}
} catch (Exception e) {
log.debug("Failed to connect:", e);
} catch (ClientProtocolException e) {
log.warn("Failed to connect:", e);
throw new UserDisplayedError(Messages.formatString("error.FailedToConnect", e.getLocalizedMessage()));
}
}
Expand Down

0 comments on commit f178a36

Please sign in to comment.