File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
client/src/main/java/io/avaje/http/client Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public interface HttpAsyncResponse {
40
40
*
41
41
* // if throwable.getCause() is a HttpException for status code >= 300
42
42
* HttpException httpException = (HttpException) throwable.getCause();
43
- * int status = httpException.getStatusCode ();
43
+ * int status = httpException.statusCode ();
44
44
*
45
45
* // convert json error response body to a bean
46
46
* ErrorResponse errorResponse = httpException.bean(ErrorResponse.class);
@@ -190,7 +190,7 @@ public interface HttpAsyncResponse {
190
190
*
191
191
* if (throwable != null) {
192
192
* HttpException httpException = (HttpException) throwable.getCause();
193
- * int statusCode = httpException.getStatusCode ();
193
+ * int statusCode = httpException.statusCode ();
194
194
*
195
195
* // maybe convert json error response body to a bean (using Jackson/Gson)
196
196
* MyErrorBean errorResponse = httpException.bean(MyErrorBean.class);
@@ -224,7 +224,7 @@ public interface HttpAsyncResponse {
224
224
*
225
225
* if (throwable != null) {
226
226
* HttpException httpException = (HttpException) throwable.getCause();
227
- * int statusCode = httpException.getStatusCode ();
227
+ * int statusCode = httpException.statusCode ();
228
228
* ...
229
229
*
230
230
* } else {
Original file line number Diff line number Diff line change 23
23
* } catch (HttpException e) {
24
24
*
25
25
* // obtain the statusCode from the exception ...
26
- * int statusCode = e.getStatusCode ());
26
+ * int statusCode = e.statusCode ());
27
27
*
28
- * HttpResponse<?> httpResponse = e.getHttpResponse ();
28
+ * HttpResponse<?> httpResponse = e.httpResponse ();
29
29
*
30
30
* // obtain the statusCode from httpResponse ...
31
31
* int statusCode = httpResponse.statusCode();
You can’t perform that action at this time.
0 commit comments