public interface HttpErrorCallback
Modifier and Type | Method and Description |
---|---|
default void |
dispatch(int statusCode,
String reasonPhrase,
String responseBody)
Stop the request timer, start the response timer, and then invoke the error callback code.
|
void |
invoke(int statusCode,
String reasonPhrase,
String responseBody)
Invoke the error callback code.
|
void invoke(int statusCode, String reasonPhrase, String responseBody)
statusCode
- Http status code of the error responsereasonPhrase
- The reason for the error. Often the status code description.responseBody
- The body of the error responsedefault void dispatch(int statusCode, String reasonPhrase, String responseBody)
statusCode
- Http status code of the error responsereasonPhrase
- The reason for the error. Often the status code description.responseBody
- The body of the error responseCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.