Table of Contents

Class MultipleUnhandledTupleValues

Namespace
Cratis.Applications.Commands
Assembly
Cratis.Applications.dll

The exception that is thrown when multiple values in a tuple don't have corresponding response value handlers.

public class MultipleUnhandledTupleValues : Exception, ISerializable
Inheritance
MultipleUnhandledTupleValues
Implements
Inherited Members
Extension Methods

Remarks

When a command handler returns a tuple with multiple values, each value is processed to determine if there's a corresponding response value handler. If exactly one value doesn't have a handler, it becomes the response. If multiple values don't have handlers, this exception is thrown as the system cannot determine which value should be the response.

Constructors

MultipleUnhandledTupleValues(IEnumerable<object>)

The exception that is thrown when multiple values in a tuple don't have corresponding response value handlers.

public MultipleUnhandledTupleValues(IEnumerable<object> unhandledValues)

Parameters

unhandledValues IEnumerable<object>

The values that don't have corresponding response value handlers.

Remarks

When a command handler returns a tuple with multiple values, each value is processed to determine if there's a corresponding response value handler. If exactly one value doesn't have a handler, it becomes the response. If multiple values don't have handlers, this exception is thrown as the system cannot determine which value should be the response.

Properties

UnhandledValues

Gets the values that don't have corresponding response value handlers.

public IReadOnlyCollection<object> UnhandledValues { get; }

Property Value

IReadOnlyCollection<object>