public class HttpException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
HttpException(int code,
@NotNull java.lang.String body,
@NotNull okhttp3.Headers headers) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getBody()
The body of HTTP response
|
int |
getCode()
The HTTP status code
|
@NotNull okhttp3.Headers |
getHeaders()
The HTTP headers.
|
public HttpException(int code,
@NotNull
@NotNull java.lang.String body,
@NotNull
@NotNull okhttp3.Headers headers)
public int getCode()
@NotNull public @NotNull java.lang.String getBody()
@NotNull public @NotNull okhttp3.Headers getHeaders()
Headers