Enum DataSourceStatusProvider.ErrorKind
- java.lang.Object
-
- java.lang.Enum<DataSourceStatusProvider.ErrorKind>
-
- com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataSourceStatusProvider.ErrorKind>
- Enclosing interface:
- DataSourceStatusProvider
public static enum DataSourceStatusProvider.ErrorKind extends java.lang.Enum<DataSourceStatusProvider.ErrorKind>
An enumeration describing the general type of an error reported inDataSourceStatusProvider.ErrorInfo
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_RESPONSE
The LaunchDarkly service returned an HTTP response with an error status, available withDataSourceStatusProvider.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 byDataSourceStatusProvider.ErrorInfo.getMessage()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DataSourceStatusProvider.ErrorKind UNKNOWN
An unexpected error, such as an uncaught exception, further described byDataSourceStatusProvider.ErrorInfo.getMessage()
.
-
NETWORK_ERROR
public static final DataSourceStatusProvider.ErrorKind NETWORK_ERROR
An I/O error such as a dropped connection.
-
ERROR_RESPONSE
public static final DataSourceStatusProvider.ErrorKind ERROR_RESPONSE
The LaunchDarkly service returned an HTTP response with an error status, available withDataSourceStatusProvider.ErrorInfo.getStatusCode()
.
-
INVALID_DATA
public static final DataSourceStatusProvider.ErrorKind INVALID_DATA
The SDK received malformed data from the LaunchDarkly service.
-
STORE_ERROR
public static final DataSourceStatusProvider.ErrorKind 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).Data source implementations do not need to report this kind of error; it will be automatically reported by the SDK when exceptions are detected.
-
-
Method Detail
-
values
public static DataSourceStatusProvider.ErrorKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataSourceStatusProvider.ErrorKind c : DataSourceStatusProvider.ErrorKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataSourceStatusProvider.ErrorKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-