Table of Contents

Interface IFailureDetails

Namespace
Temporalio.Exceptions
Assembly
Temporalio.dll

Represents details of a failure.

public interface IFailureDetails

Remarks

This is abstracted as an interface to separate converted, which uses InboundFailureDetails, from not-yet-converted which uses OutboundFailureDetails.

Properties

Count

Gets the number of details. May be 0.

int Count { get; }

Property Value

int

Methods

ElementAt<T>(int)

Get a detail value at the given index, converting to the given type if needed.

T ElementAt<T>(int index)

Parameters

index int

Index of the detail item.

Returns

T

Item at this index for the given type.

Type Parameters

T

The detail type to get. For outbound details this is a cast, for inbound this is a conversion.

Remarks

This will fail if the index is out of range or the type is invalid for the detail item within.