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 C# SDK error handler

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

You can provide your own custom error handler logic to standardize error messaging across your production environment.

This error handler is called when the C# SDK is not executed as expected. This may be caused by incorrect arguments being provided to the SDK or running the SDK in an environment where network or any other disruptions occur.

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

using OptimizelySDK.ErrorHandler;

/// <summary>
/// Creates a CustomErrorHandler to handle errors raised by the SDK.
/// </summary>
public class CustomErrorHandler : IErrorHandler
{
    /// <summary>
    /// Handle exceptions when raised by the SDK.
    /// </summary>
    /// <param name="exception">Exception object raised by the SDK.</param>
    public void HandleError(Exception exception)
    {
        throw new NotImplementedException();
    }
}

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