Class FailureException
- Namespace
- Temporalio.Exceptions
- Assembly
- Temporalio.dll
Base exception for all Temporal-failure-based exceptions.
public class FailureException : TemporalException, ISerializable
- Inheritance
-
FailureException
- Implements
- Derived
- Inherited Members
Remarks
All exceptions of this type fail a workflow.
Constructors
FailureException(string, Exception?)
Initializes a new instance of the FailureException class.
protected FailureException(string message, Exception? inner = null)
Parameters
FailureException(Failure, Exception?)
Initializes a new instance of the FailureException class.
protected FailureException(Failure failure, Exception? inner)
Parameters
Properties
Failure
Gets the underlying protobuf failure object.
public Failure? Failure { get; protected init; }
Property Value
Remarks
This is non-null except for user-created exceptions.
StackTrace
Gets the stack trace on the exception or on the failure if not on the exception.
public override string? StackTrace { get; }