Class DecisionReadRefused

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Thrown before enrollment when a decision read cannot be protected.

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

Constructors

DecisionReadRefused(DecisionReadRefusalReason, Type)

Initializes a new instance of the DecisionReadRefused class.

public DecisionReadRefused(DecisionReadRefusalReason reason, Type readModelType)

Parameters

reason DecisionReadRefusalReason

The refusal reason.

readModelType Type

The read model type.

DecisionReadRefused(DecisionReadRefusalReason, Type, string?)

Thrown before enrollment when a decision read cannot be protected.

public DecisionReadRefused(DecisionReadRefusalReason reason, Type readModelType, string? detail)

Parameters

reason DecisionReadRefusalReason

The refusal reason.

readModelType Type

The read model type.

detail string

Optional diagnostic detail without definition values or event content.

Properties

ReadModelType

Gets the refused model type.

public Type ReadModelType { get; }

Property Value

Type

Reason

Gets the refusal reason.

public DecisionReadRefusalReason Reason { get; }

Property Value

DecisionReadRefusalReason