ExceptionRule Class

Definition

A rule that defines actions to execute upon a specific trigger.

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

Constructors

ExceptionRule(String, ExceptionTrigger)

Initializes a new instance of an exception rule.

Properties

Actions

A collection of actions to perform once the exception is triggered.

Id

Id of an exception rule.

Trigger

The trigger for this exception rule. Please note ExceptionTrigger is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include QueueLengthExceptionTrigger and WaitTimeExceptionTrigger.

Explicit Interface Implementations

IJsonModel<ExceptionRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ExceptionRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExceptionRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExceptionRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ExceptionRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to