Class OrchestrationException
- Namespace
- DurableTask.Core.Exceptions
- Assembly
- DurableTask.Core.dll
Represents errors created during orchestration execution
public class OrchestrationException : Exception, ISerializable
- Inheritance
-
OrchestrationException
- Implements
- Derived
- Inherited Members
Constructors
OrchestrationException()
Initializes an new instance of the OrchestrationException class
public OrchestrationException()
OrchestrationException(int, string, Exception)
Initializes an new instance of the OrchestrationException class with a specified event id and error message and a reference to the inner exception that is the cause of this exception.
public OrchestrationException(int eventId, string message, Exception innerException)
Parameters
eventId
intEventId of the error.
message
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.
OrchestrationException(SerializationInfo, StreamingContext)
Initializes a new instance of the OrchestrationException class with serialized data.
protected OrchestrationException(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.
OrchestrationException(string)
Initializes an new instance of the OrchestrationException class with a specified error message
public OrchestrationException(string message)
Parameters
message
stringThe message that describes the error.
OrchestrationException(string, Exception)
Initializes an new instance of the OrchestrationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public OrchestrationException(string message, Exception innerException)
Parameters
message
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
EventId
Gets or sets the EventId of the exception
public int EventId { get; set; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext