Language

ResilientTaskException(ResilientTaskErrorCode, String, Exception) Constructor

Definition

Initializes a new instance of the ResilientTaskException class.

public ResilientTaskException(Azure.AI.AgentServer.Core.Tasks.ResilientTaskErrorCode errorCode, string? message = default, Exception? innerException = default);
new Azure.AI.AgentServer.Core.Tasks.ResilientTaskException : Azure.AI.AgentServer.Core.Tasks.ResilientTaskErrorCode * string * Exception -> Azure.AI.AgentServer.Core.Tasks.ResilientTaskException
Public Sub New (errorCode As ResilientTaskErrorCode, Optional message As String = Nothing, Optional innerException As Exception = Nothing)

Parameters

errorCode
ResilientTaskErrorCode

The failure category.

message
String

An optional description; a code-specific default is used when omitted.

innerException
Exception

The underlying cause, when available.

Applies to