Bagikan melalui


JobRouterAdministrationClient.UpdateExceptionPolicy Method

Definition

Overloads

UpdateExceptionPolicy(ExceptionPolicy, RequestConditions, CancellationToken)

Creates a new exception policy.

UpdateExceptionPolicy(String, RequestContent, RequestConditions, RequestContext)

[Protocol Method] Updates a exception policy.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

UpdateExceptionPolicy(ExceptionPolicy, RequestConditions, CancellationToken)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

Creates a new exception policy.

public virtual Azure.Response<Azure.Communication.JobRouter.ExceptionPolicy> UpdateExceptionPolicy (Azure.Communication.JobRouter.ExceptionPolicy exceptionPolicy, Azure.RequestConditions requestConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateExceptionPolicy : Azure.Communication.JobRouter.ExceptionPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.ExceptionPolicy>
override this.UpdateExceptionPolicy : Azure.Communication.JobRouter.ExceptionPolicy * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.ExceptionPolicy>
Public Overridable Function UpdateExceptionPolicy (exceptionPolicy As ExceptionPolicy, Optional requestConditions As RequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ExceptionPolicy)

Parameters

exceptionPolicy
ExceptionPolicy

Exception policy to update. Uses merge-patch semantics: https://datatracker.ietf.org/doc/html/rfc7396.

requestConditions
RequestConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to

UpdateExceptionPolicy(String, RequestContent, RequestConditions, RequestContext)

Source:
JobRouterAdministrationClient.cs
Source:
JobRouterAdministrationClient.cs

[Protocol Method] Updates a exception policy.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response UpdateExceptionPolicy (string exceptionPolicyId, Azure.Core.RequestContent content, Azure.RequestConditions requestConditions = default, Azure.RequestContext context = default);
abstract member UpdateExceptionPolicy : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
override this.UpdateExceptionPolicy : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function UpdateExceptionPolicy (exceptionPolicyId As String, content As RequestContent, Optional requestConditions As RequestConditions = Nothing, Optional context As RequestContext = Nothing) As Response

Parameters

exceptionPolicyId
String

Id of an exception policy.

content
RequestContent

The content to send as the body of the request.

requestConditions
RequestConditions

The content to send as the request conditions of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

exceptionPolicyId or content is null.

exceptionPolicyId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to