Table of Contents

Class ErrorContext

Namespace
DotCompute.Core.Models
Assembly
DotCompute.Core.dll

Context information for error handling and recovery.

public class ErrorContext
Inheritance
ErrorContext
Inherited Members

Properties

AdditionalData

Gets additional context data.

public Dictionary<string, object> AdditionalData { get; init; }

Property Value

Dictionary<string, object>

CanFallbackToCpu

Gets or sets whether CPU fallback is available.

public bool CanFallbackToCpu { get; set; }

Property Value

bool

Category

Gets or sets the error category.

public ErrorCategory Category { get; set; }

Property Value

ErrorCategory

DeviceId

Gets or sets the device ID where the error occurred.

public int DeviceId { get; set; }

Property Value

int

ErrorCode

Gets or sets the error code.

public int ErrorCode { get; set; }

Property Value

int

ErrorMessage

Gets or sets the error message.

public string ErrorMessage { get; set; }

Property Value

string

FailedOperation

Gets or sets the operation that failed.

public string FailedOperation { get; set; }

Property Value

string

IsRecoverable

Gets or sets whether the error is recoverable.

public bool IsRecoverable { get; set; }

Property Value

bool

RetryCount

Gets or sets the number of retry attempts made.

public int RetryCount { get; set; }

Property Value

int

StackTrace

Gets or sets the stack trace at the time of error.

public string? StackTrace { get; set; }

Property Value

string

Timestamp

Gets or sets when the error occurred.

public DateTimeOffset Timestamp { get; set; }

Property Value

DateTimeOffset