Package growthbook.sdk.java
Enum Class FeatureFetchException.FeatureFetchErrorCode
java.lang.Object
java.lang.Enum<FeatureFetchException.FeatureFetchErrorCode>
growthbook.sdk.java.FeatureFetchException.FeatureFetchErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<FeatureFetchException.FeatureFetchErrorCode>
,Constable
- Enclosing class:
- FeatureFetchException
public static enum FeatureFetchException.FeatureFetchErrorCode
extends Enum<FeatureFetchException.FeatureFetchErrorCode>
Error codes available for a
FeatureFetchException
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription- an encryptionKey was provided but the endpoint does not support encryption so decryption fails - no features were found for an unencrypted endpoint- there was no response body- could not establish a connection to the events (server-sent events) for feature updates- there was an unknown error that occurred when attempting to make the request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CONFIGURATION_ERROR
- an encryptionKey was provided but the endpoint does not support encryption so decryption fails - no features were found for an unencrypted endpoint -
NO_RESPONSE_ERROR
- there was no response body -
SSE_CONNECTION_ERROR
- could not establish a connection to the events (server-sent events) for feature updates -
UNKNOWN
- there was an unknown error that occurred when attempting to make the request.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-