public class StreamExceptionHandler extends Object
| Constructor and Description |
|---|
StreamExceptionHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create the object using the ObjectMapper to deserialize the json response coming from
remote side.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleResponseCode(com.squareup.okhttp.Response response)
Translate http status code to Java Exception.
|
public StreamExceptionHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper - public void handleResponseCode(com.squareup.okhttp.Response response)
throws IOException,
StreamClientException
response - ResponseIOExceptionStreamClientExceptionCopyright © 2015. All rights reserved.