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>
,java.lang.constant.Constable
- Enclosing interface:
- DataSourceStatusProvider
public static enum DataSourceStatusProvider.ErrorKind extends java.lang.Enum<DataSourceStatusProvider.ErrorKind>
An enumeration describing the general type of an error reported in
DataSourceStatusProvider.ErrorInfo
.-
Nested Class Summary
-
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
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 Details
-
UNKNOWN
An unexpected error, such as an uncaught exception, further described byDataSourceStatusProvider.ErrorInfo.getMessage()
. -
NETWORK_ERROR
An I/O error such as a dropped connection. -
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. -
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 whenever one of the update methods of
DataSourceUpdates
throws an exception.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-