Struct DataSourceStatus.ErrorInfo
A description of an error condition that the data source encountered.
Inherited Members
Namespace: LaunchDarkly.Sdk.Client.Interfaces
Assembly: LaunchDarkly.ClientSdk.dll
Syntax
public struct DataSourceStatus.ErrorInfo
Properties
| Edit this page View SourceKind
An enumerated value representing the general category of the error.
Declaration
public DataSourceStatus.ErrorKind Kind { readonly get; set; }
Property Value
Type | Description |
---|---|
DataSourceStatus.ErrorKind |
Message
Any additional human-readable information relevant to the error.
Declaration
public string Message { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The format of this message is subject to change and should not be relied on programmatically.
StatusCode
The HTTP status code if the error was ErrorResponse, or zero otherwise.
Declaration
public int StatusCode { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
Time
The date/time that the error occurred.
Declaration
public DateTime Time { readonly get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
| Edit this page View SourceFromException(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 |
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 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |