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 {
4040 *
4141 * // if throwable.getCause() is a HttpException for status code >= 300
4242 * HttpException httpException = (HttpException) throwable.getCause();
43- * int status = httpException.getStatusCode ();
43+ * int status = httpException.statusCode ();
4444 *
4545 * // convert json error response body to a bean
4646 * ErrorResponse errorResponse = httpException.bean(ErrorResponse.class);
@@ -190,7 +190,7 @@ public interface HttpAsyncResponse {
190190 *
191191 * if (throwable != null) {
192192 * HttpException httpException = (HttpException) throwable.getCause();
193- * int statusCode = httpException.getStatusCode ();
193+ * int statusCode = httpException.statusCode ();
194194 *
195195 * // maybe convert json error response body to a bean (using Jackson/Gson)
196196 * MyErrorBean errorResponse = httpException.bean(MyErrorBean.class);
@@ -224,7 +224,7 @@ public interface HttpAsyncResponse {
224224 *
225225 * if (throwable != null) {
226226 * HttpException httpException = (HttpException) throwable.getCause();
227- * int statusCode = httpException.getStatusCode ();
227+ * int statusCode = httpException.statusCode ();
228228 * ...
229229 *
230230 * } else {
Original file line number Diff line number Diff line change 2323 * } catch (HttpException e) {
2424 *
2525 * // obtain the statusCode from the exception ...
26- * int statusCode = e.getStatusCode ());
26+ * int statusCode = e.statusCode ());
2727 *
28- * HttpResponse<?> httpResponse = e.getHttpResponse ();
28+ * HttpResponse<?> httpResponse = e.httpResponse ();
2929 *
3030 * // obtain the statusCode from httpResponse ...
3131 * int statusCode = httpResponse.statusCode();
You can’t perform that action at this time.
0 commit comments