public class ServiceResponseException extends RuntimeException
| Constructor and Description | 
|---|
ServiceResponseException(int statusCode,
                        String message,
                        okhttp3.Response response)
Instantiates a new Service Response Exception. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
okhttp3.Response | 
getResponse()
Gets the HTTP response. 
 | 
int | 
getStatusCode()
Gets the HTTP status code. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceResponseException(int statusCode,
                                String message,
                                okhttp3.Response response)
statusCode - the status codemessage - the error messageresponse - the HTTP responseCopyright © 2015–2016 IBM Watson. All rights reserved.