ErrorResponseException.CreateErrorResponseException Method
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.
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
- message
- AgentErrorDefinition
- 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
- message
- AgentErrorDefinition
- innerException
- Exception
- cancellationToken
- CancellationToken
- errors
- String[]