Class CommandOperationFailure

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

Immutable server-only original failure context optionally injected into Compensate. It cannot change command success.

public sealed class CommandOperationFailure
Inheritance
CommandOperationFailure
Inherited Members
Extension Methods

Properties

CommitDisposition

Gets coordinated commitment facts used to authorize recovery.

public CommandCommitDisposition CommitDisposition { get; }

Property Value

CommandCommitDisposition

ExceptionMessages

Gets a defensive snapshot of original exception messages. Recovery failures are reported separately.

public IReadOnlyList<string> ExceptionMessages { get; }

Property Value

IReadOnlyList<string>

InvocationCompleted

Gets whether this invocation's Execute returned.

public bool InvocationCompleted { get; }

Property Value

bool

InvocationIndex

Gets the zero-based invocation index.

public int InvocationIndex { get; }

Property Value

int

IsFailingInvocation

Gets whether this invocation threw the original failure.

public bool IsFailingInvocation { get; }

Property Value

bool

Source

Gets the original failure phase.

public CommandOperationFailureSource Source { get; }

Property Value

CommandOperationFailureSource