Table of Contents

Class TaskFailedException

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

Represents errors created during task execution

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

Constructors

TaskFailedException()

Initializes an new instance of the TaskFailedException class

public TaskFailedException()

TaskFailedException(int, int, string, string, string, Exception)

Initializes an new instance of the TaskFailedException 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 TaskFailedException(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.

TaskFailedException(SerializationInfo, StreamingContext)

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

protected TaskFailedException(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.

TaskFailedException(string)

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

public TaskFailedException(string reason)

Parameters

reason string

The message that describes the error.

TaskFailedException(string, Exception)

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

public TaskFailedException(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