Class FeatureFetchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
growthbook.sdk.java.FeatureFetchException
All Implemented Interfaces:
Serializable

public class FeatureFetchException extends Exception
This error is thrown by GBFeaturesRepository You can call getErrorCode() to get an enum of various error types you can handle.

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 UNKNOWN: - there was an unknown error that occurred when attempting to make the request.

See Also: