RestException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. bot. restclient. RestException
- com.
- java.
- java.
- java.
public class RestException
extends java.lang.RuntimeException
Exception thrown for an invalid response with custom error information.
Constructor Summary
| Constructor | Description |
|---|---|
| RestException(String message, Response<ResponseBody> response) |
Initializes a new instance of the Rest |
| RestException(String message, Response<ResponseBody> response, Object body) |
Initializes a new instance of the Rest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Object | body() |
| retrofit2.Response<okhttp3.ResponseBody> | response() |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
RestException
public RestException(String message, Response
Initializes a new instance of the RestException class.
Parameters:
RestException
public RestException(String message, Response
Initializes a new instance of the RestException class.
Parameters:
Method Details
body
public Object body()
Returns:
response
public Response
Returns: