TaskFailureDetail Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TaskFailureDetail class.
public TaskFailureDetail(Azure.AI.AgentServer.Core.Tasks.TaskFailureKind kind, string errorType, string message, int? attempts = default, string? lastError = default, string? lastErrorType = default, string? traceback = default);
new Azure.AI.AgentServer.Core.Tasks.TaskFailureDetail : Azure.AI.AgentServer.Core.Tasks.TaskFailureKind * string * string * Nullable<int> * string * string * string -> Azure.AI.AgentServer.Core.Tasks.TaskFailureDetail
Public Sub New (kind As TaskFailureKind, errorType As String, message As String, Optional attempts As Nullable(Of Integer) = Nothing, Optional lastError As String = Nothing, Optional lastErrorType As String = Nothing, Optional traceback As String = Nothing)
Parameters
- kind
- TaskFailureKind
Whether this was a direct handler error or exhausted retries.
- errorType
- String
The exception type name (or "exhausted_retries").
- message
- String
A human-readable summary of the failure.
- lastError
- String
For exhausted-retries failures, the message of the final error.
- lastErrorType
- String
For exhausted-retries failures, the type name of the final error.
- traceback
- String
The formatted stack trace of the underlying exception, when available.