Table of Contents

Class SubOrchestrationFailedException

Namespace
DurableTask.Core.Exceptions
Assembly
DurableTask.Core.dll

Represents errors created during sub orchestration execution

public class SubOrchestrationFailedException : OrchestrationException, ISerializable
Inheritance
SubOrchestrationFailedException
Implements
Inherited Members

Constructors

SubOrchestrationFailedException()

Initializes an new instance of the SubOrchestrationFailedException class

public SubOrchestrationFailedException()

SubOrchestrationFailedException(int, int, string, string, string, Exception)

Initializes an new instance of the SubOrchestrationFailedException class with a specified event id, schedule id, name, version and error message and a reference to the inner exception that is the cause of this exception.

public SubOrchestrationFailedException(int eventId, int scheduleId, string name, string version, string reason, Exception cause)

Parameters

eventId int

EventId of the error.

scheduleId int

ScheduleId of the error.

name string

Name of the Type Instance that experienced the error.

version string

Version of the Type Instance that experienced the error.

reason string

The message that describes the error.

cause Exception

The exception that is the cause of the current exception, or a null reference if no cause is specified.

SubOrchestrationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the SubOrchestrationFailedException class with serialized data.

protected SubOrchestrationFailedException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

SubOrchestrationFailedException(string)

Initializes an new instance of the SubOrchestrationFailedException class with a specified error message

public SubOrchestrationFailedException(string reason)

Parameters

reason string

The message that describes the error.

SubOrchestrationFailedException(string, Exception)

Initializes an new instance of the SubOrchestrationFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public SubOrchestrationFailedException(string reason, Exception innerException)

Parameters

reason string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

Name

Name of the Type Instance that experienced the error

public string Name { get; set; }

Property Value

string

ScheduleId

Schedule Id of the exception

public int ScheduleId { get; set; }

Property Value

int

Version

Version of the Type Instance that experienced the error

public string Version { get; set; }

Property Value

string

Methods

GetObjectData(SerializationInfo, StreamingContext)

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext