Table of Contents

Class TaskFailureException

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

Exception type thrown by implementors of TaskActivity when exception details need to flow to parent orchestrations.

public class TaskFailureException : Exception, ISerializable
Inheritance
TaskFailureException
Implements
Inherited Members

Constructors

TaskFailureException()

Initializes a new instance of the TaskFailureException class.

public TaskFailureException()

TaskFailureException(SerializationInfo, StreamingContext)

Initializes a new instance of the TaskFailureException class.

protected TaskFailureException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

TaskFailureException(string)

Initializes a new instance of the TaskFailureException class.

public TaskFailureException(string reason)

Parameters

reason string

TaskFailureException(string, Exception)

Initializes a new instance of the TaskFailureException class.

public TaskFailureException(string reason, Exception innerException)

Parameters

reason string
innerException Exception

TaskFailureException(string, Exception, string)

Initializes a new instance of the TaskFailureException class.

public TaskFailureException(string reason, Exception innerException, string details)

Parameters

reason string
innerException Exception
details string

TaskFailureException(string, string)

Initializes a new instance of the TaskFailureException class.

public TaskFailureException(string reason, string details)

Parameters

reason string
details string

Properties

Details

Details of the exception which will flow to the parent orchestration.

public string Details { get; set; }

Property Value

string

Methods

GetObjectData(SerializationInfo, StreamingContext)

Gets object data for use by serialization.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

ToString()

Returns a debug string representing the current exception object.

public override string ToString()

Returns

string