Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev guideRecipesAPI ReferenceChangelog
Dev guideAPI ReferenceRecipesChangelogUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev guide

Customize the Android SDK error handler

How to create your own error handler logic for the Optimizely Feature Experimentation Android SDK.

To standardize error reporting across your production environment, you can provide your own custom error handler logic in the Optimizely Feature Experimentation Android SDK.

This error handler is called when an unknown feature flag key is referenced.

See the code example below. If the error handler is not overridden, a no-op error handler is used by default.

// Error handler that raises exceptions
val errorHandler: ErrorHandler = RaiseExceptionErrorHandler()

val optimizelyManager = OptimizelyManager.builder()
         .withSDKKey("<Your_SDK_Key>")
         .withErrorHandler(errorHandler)
         .withDatafileDownloadInterval(15, TimeUnit.MINUTES)
         .build(context)
// Error handler that raises exceptions
ErrorHandler errorHandler = new RaiseExceptionErrorHandler();

OptimizelyManager optimizelyManager = OptimizelyManager.builder()
        .withSDKKey("<Your_SDK_Key>")
        .withErrorHandler(errorHandler)
        .withDatafileDownloadInterval(15, TimeUnit.MINUTES)
        .build(context);

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy