public class ServiceException extends RestException
| Constructor and Description |
|---|
ServiceException()
Initializes a new instance of the ServiceException class.
|
ServiceException(String message)
Initializes a new instance of the ServiceException class.
|
ServiceException(String message,
Throwable cause)
Initializes a new instance of the ServiceException class.
|
ServiceException(Throwable cause)
Initializes a new instance of the ServiceException class.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getBody()
Gets the HTTP response body.
|
retrofit2.Response |
getResponse()
Gets information about the associated HTTP response.
|
void |
setBody(Object body)
Sets the HTTP response body.
|
void |
setResponse(retrofit2.Response response)
Sets the HTTP response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceException()
public ServiceException(String message)
message - The exception message.public ServiceException(String message, Throwable cause)
message - the exception messagecause - exception that caused this exception to occurpublic ServiceException(Throwable cause)
cause - exception that caused this exception to occurpublic retrofit2.Response getResponse()
public Object getBody()
public void setResponse(retrofit2.Response response)
response - the HTTP responsepublic void setBody(Object body)
body - the response object/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/