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
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.
SubOrchestrationFailedException(SerializationInfo, StreamingContext)
Initializes a new instance of the SubOrchestrationFailedException class with serialized data.
protected SubOrchestrationFailedException(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.
SubOrchestrationFailedException(string)
Initializes an new instance of the SubOrchestrationFailedException class with a specified error message
public SubOrchestrationFailedException(string reason)
Parameters
reason
stringThe 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
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