public class InfluxException extends RuntimeException
| Constructor and Description |
|---|
InfluxException(retrofit2.Response<?> cause) |
InfluxException(String message) |
InfluxException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
errorBody()
The JSON unsuccessful response body.
|
String |
getMessage() |
Map<String,String> |
headers()
Gets the HTTP headers from the unsuccessful response.
|
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 Map<String,String> headers()
Map.Copyright © 2018–2023 InfluxData, Inc.. All rights reserved.