Class FailureException
Base exception for all Temporal-failure-based exceptions.
Inheritance
FailureException
Namespace: Temporalio.Exceptions
Assembly: Temporalio.dll
Syntax
public class FailureException : TemporalException
Remarks
All exceptions of this type fail a workflow.
Constructors
FailureException(String, Nullable<Exception>)
Initializes a new instance of the FailureException class.
Declaration
protected FailureException(string message, Exception? inner = null)
Parameters
Type | Name | Description |
---|---|---|
String | message | Message for the exception. |
Nullable<Exception> | inner | Cause of the exception. |
FailureException(Failure, Nullable<Exception>)
Initializes a new instance of the FailureException class.
Declaration
protected FailureException(Failure failure, Exception? inner)
Parameters
Type | Name | Description |
---|---|---|
Failure | failure | Underlying proto failure. |
Nullable<Exception> | inner | Inner exception if any. |
Properties
Failure
Gets the underlying protobuf failure object.
Declaration
public Failure Failure { get; }
Property Value
Type | Description |
---|---|
Failure |
Remarks
This is non-null except for user-created exceptions.