Commit 8b9da40
Fix compile error: declare ParseException on postForResponse
EntityUtils.toString() throws org.apache.hc.core5.http.ParseException
(checked). The try-with-resources refactor removed the catch(Exception)
wrapper that was absorbing it in the original post() method, so the new
postForResponse() must declare it. Test callers already use throws Exception.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 17dadea commit 8b9da40
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments