Condividi tramite


ExceptionPolicy Class

Definition

A policy that defines actions to execute when exception are triggered.

public class ExceptionPolicy
public class ExceptionPolicy : System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.ExceptionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.ExceptionPolicy>
type ExceptionPolicy = class
type ExceptionPolicy = class
    interface IJsonModel<ExceptionPolicy>
    interface IPersistableModel<ExceptionPolicy>
Public Class ExceptionPolicy
Public Class ExceptionPolicy
Implements IJsonModel(Of ExceptionPolicy), IPersistableModel(Of ExceptionPolicy)
Inheritance
ExceptionPolicy
Implements

Constructors

ExceptionPolicy(String)

Initializes a new instance of an exception policy.

Properties

ETag

The entity tag for this resource.

ExceptionRules

A collection of exception rules on the exception policy.

Id

Id of an exception policy.

Name

Friendly name of this policy.

Explicit Interface Implementations

IJsonModel<ExceptionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ExceptionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExceptionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExceptionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ExceptionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to