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
intEventId of the error.
scheduleId
intScheduleId of the error.
name
stringName of the Type Instance that experienced the error.
version
stringVersion of the Type Instance that experienced the error.
reason
stringThe message that describes the error.
cause
ExceptionThe 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
SerializationInfoThe System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringThe 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
stringThe message that describes the error.
innerException
ExceptionThe 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
ScheduleId
Schedule Id of the exception
public int ScheduleId { get; set; }
Property Value
Version
Version of the Type Instance that experienced the error
public string Version { get; set; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext