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

    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

    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)

    Constructs an instance based on an exception.

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

    the exception

    Returns
    Type Description
    DataSourceStatus.ErrorInfo

    an ErrorInfo

    | Edit this page View Source

    FromHttpError(int)

    Constructs an instance based on an HTTP error status.

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

    the status code

    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()

    See Also

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