public static enum DataSourceStatusProvider.ErrorKind extends java.lang.Enum<DataSourceStatusProvider.ErrorKind>
DataSourceStatusProvider.ErrorInfo
.Enum Constant and Description |
---|
ERROR_RESPONSE
The LaunchDarkly service returned an HTTP response with an error status, available with
DataSourceStatusProvider.ErrorInfo.getStatusCode() . |
INVALID_DATA
The SDK received malformed data from the LaunchDarkly service.
|
NETWORK_ERROR
An I/O error such as a dropped connection.
|
STORE_ERROR
The data source itself is working, but when it tried to put an update into the data store, the data
store failed (so the SDK may not have the latest data).
|
UNKNOWN
An unexpected error, such as an uncaught exception, further described by
DataSourceStatusProvider.ErrorInfo.getMessage() . |
Modifier and Type | Method and Description |
---|---|
static DataSourceStatusProvider.ErrorKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataSourceStatusProvider.ErrorKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSourceStatusProvider.ErrorKind UNKNOWN
DataSourceStatusProvider.ErrorInfo.getMessage()
.public static final DataSourceStatusProvider.ErrorKind NETWORK_ERROR
public static final DataSourceStatusProvider.ErrorKind ERROR_RESPONSE
DataSourceStatusProvider.ErrorInfo.getStatusCode()
.public static final DataSourceStatusProvider.ErrorKind INVALID_DATA
public static final DataSourceStatusProvider.ErrorKind STORE_ERROR
Data source implementations do not need to report this kind of error; it will be automatically reported by the SDK when exceptions are detected.
public static DataSourceStatusProvider.ErrorKind[] values()
for (DataSourceStatusProvider.ErrorKind c : DataSourceStatusProvider.ErrorKind.values()) System.out.println(c);
public static DataSourceStatusProvider.ErrorKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null