LaunchDarkly Dotnet Server SDK
Search Results for

    Show / Hide Table of Contents

    Struct DataSourceStatus.ErrorInfo

    A description of an error condition that the data source encountered.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk.Server.Interfaces
    Assembly: LaunchDarkly.ServerSdk.dll
    Syntax
    public struct DataSourceStatus.ErrorInfo

    Properties

    | Edit this page View Source

    FDv1Fallback

    The error indicates to fall back to FDv1. (At the time of writing this, this was indicated via the x-ld-fd-fallback header, but this may change in the future. This is just info for posterity.)

    Declaration
    public bool FDv1Fallback { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Kind

    An enumerated value representing the general category of the error.

    Declaration
    public DataSourceStatus.ErrorKind Kind { get; set; }
    Property Value
    Type Description
    DataSourceStatus.ErrorKind
    | Edit this page View Source

    Message

    Any additional human-readable information relevant to the error.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The format of this message is subject to change and should not be relied on programmatically.

    | Edit this page View Source

    Recoverable

    Whether the error is recoverable. Recoverable errors are those that can be retried, such as network errors. Unrecoverable errors are those that cannot be retried, such as invalid SDK key errors.

    Declaration
    public bool Recoverable { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    StatusCode

    The HTTP status code if the error was ErrorResponse, or zero otherwise.

    Declaration
    public int StatusCode { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Time

    The date/time that the error occurred.

    Declaration
    public DateTime Time { get; set; }
    Property Value
    Type Description
    DateTime

    Methods

    | Edit this page View Source

    FromException(Exception, bool)

    Constructs an instance based on an exception.

    Declaration
    public static DataSourceStatus.ErrorInfo FromException(Exception e, bool recoverable)
    Parameters
    Type Name Description
    Exception e

    the exception

    bool recoverable

    whether the error is recoverable

    Returns
    Type Description
    DataSourceStatus.ErrorInfo

    an ErrorInfo

    | Edit this page View Source

    FromHttpError(int, bool)

    Constructs an instance based on an HTTP error status.

    Declaration
    public static DataSourceStatus.ErrorInfo FromHttpError(int statusCode, bool recoverable)
    Parameters
    Type Name Description
    int statusCode

    the status code

    bool recoverable

    whether the error is recoverable

    Returns
    Type Description
    DataSourceStatus.ErrorInfo

    an ErrorInfo

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Extension Methods

    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)

    See Also

    LastError
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX