public class InfluxException extends RuntimeException
| Constructor and Description |
|---|
InfluxException(retrofit2.Response<?> cause) |
InfluxException(String message) |
InfluxException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
errorBody()
The JSON unsuccessful response body.
|
String |
getMessage() |
int |
reference()
Gets the reference code unique to the error type.
|
int |
status()
Gets the HTTP status code of the unsuccessful response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InfluxException(@Nullable retrofit2.Response<?> cause)
public String getMessage()
getMessage in class Throwablepublic int reference()
public int status()
@Nonnull public org.json.JSONObject errorBody()
Copyright © 2018–2020 InfluxData, Inc.. All rights reserved.