ErrorResponseException.CreateErrorResponseException Method

Definition

Overloads

CreateErrorResponseException(AgentErrorDefinition, Exception, String[])

public static Microsoft.Agents.Core.Errors.ErrorResponseException CreateErrorResponseException(Microsoft.Agents.Core.Errors.AgentErrorDefinition message, Exception innerException = default, params string[] errors);
static member CreateErrorResponseException : Microsoft.Agents.Core.Errors.AgentErrorDefinition * Exception * string[] -> Microsoft.Agents.Core.Errors.ErrorResponseException
Public Shared Function CreateErrorResponseException (message As AgentErrorDefinition, Optional innerException As Exception = Nothing, ParamArray errors As String()) As ErrorResponseException

Parameters

innerException
Exception
errors
String[]

Returns

Applies to

CreateErrorResponseException(HttpResponseMessage, AgentErrorDefinition, Exception, CancellationToken, String[])

public static Microsoft.Agents.Core.Errors.ErrorResponseException CreateErrorResponseException(System.Net.Http.HttpResponseMessage httpResponse, Microsoft.Agents.Core.Errors.AgentErrorDefinition message, Exception innerException = default, System.Threading.CancellationToken cancellationToken = default, params string[] errors);
static member CreateErrorResponseException : System.Net.Http.HttpResponseMessage * Microsoft.Agents.Core.Errors.AgentErrorDefinition * Exception * System.Threading.CancellationToken * string[] -> Microsoft.Agents.Core.Errors.ErrorResponseException
Public Shared Function CreateErrorResponseException (httpResponse As HttpResponseMessage, message As AgentErrorDefinition, Optional innerException As Exception = Nothing, Optional cancellationToken As CancellationToken = Nothing, ParamArray errors As String()) As ErrorResponseException

Parameters

httpResponse
HttpResponseMessage
innerException
Exception
cancellationToken
CancellationToken
errors
String[]

Returns

Applies to