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
CanFallbackToCpu
Gets or sets whether CPU fallback is available.
public bool CanFallbackToCpu { get; set; }
Property Value
Category
Gets or sets the error category.
public ErrorCategory Category { get; set; }
Property Value
DeviceId
Gets or sets the device ID where the error occurred.
public int DeviceId { get; set; }
Property Value
ErrorCode
Gets or sets the error code.
public int ErrorCode { get; set; }
Property Value
ErrorMessage
Gets or sets the error message.
public string ErrorMessage { get; set; }
Property Value
FailedOperation
Gets or sets the operation that failed.
public string FailedOperation { get; set; }
Property Value
IsRecoverable
Gets or sets whether the error is recoverable.
public bool IsRecoverable { get; set; }
Property Value
RetryCount
Gets or sets the number of retry attempts made.
public int RetryCount { get; set; }
Property Value
StackTrace
Gets or sets the stack trace at the time of error.
public string? StackTrace { get; set; }
Property Value
Timestamp
Gets or sets when the error occurred.
public DateTimeOffset Timestamp { get; set; }