Delen via


ExceptionAction Class

Definition

The action to take when the exception is triggered. Please note ExceptionAction 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 CancelExceptionAction, ManualReclassifyExceptionAction and ReclassifyExceptionAction.

public abstract class ExceptionAction
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownExceptionAction))]
public abstract class ExceptionAction : System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.ExceptionAction>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.ExceptionAction>
type ExceptionAction = class
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownExceptionAction))>]
type ExceptionAction = class
    interface IJsonModel<ExceptionAction>
    interface IPersistableModel<ExceptionAction>
Public MustInherit Class ExceptionAction
Public MustInherit Class ExceptionAction
Implements IJsonModel(Of ExceptionAction), IPersistableModel(Of ExceptionAction)
Inheritance
ExceptionAction
Derived
Attributes
Implements

Constructors

ExceptionAction()

Initializes a new instance of ExceptionAction.

Properties

Id

Unique Id of the exception action.

Kind

The type discriminator describing a sub-type of ExceptionAction.

Explicit Interface Implementations

IJsonModel<ExceptionAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ExceptionAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExceptionAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExceptionAction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ExceptionAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to