ResilientTaskException(ResilientTaskErrorCode, String, Exception) 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 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.