Table of Contents

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

message string

Message for the exception.

inner Exception

Cause of the exception.

FailureException(Failure, Exception?)

Initializes a new instance of the FailureException class.

protected FailureException(Failure failure, Exception? inner)

Parameters

failure Failure

Underlying proto failure.

inner Exception

Inner exception if any.

Properties

Failure

Gets the underlying protobuf failure object.

public Failure? Failure { get; protected init; }

Property Value

Failure

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; }

Property Value

string