Class VariantMustDeclareEntersOnEvent
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
The exception that is thrown when a projection declared as a variant does not name the event that activates it.
public class VariantMustDeclareEntersOnEvent : Exception, ISerializable
- Inheritance
-
VariantMustDeclareEntersOnEvent
- Implements
- Inherited Members
- Extension Methods
Remarks
A variant with no entering event could never be created, and - because every other handler on a variant is update-only - would silently never be written to at all.
Constructors
VariantMustDeclareEntersOnEvent(Type)
The exception that is thrown when a projection declared as a variant does not name the event that activates it.
public VariantMustDeclareEntersOnEvent(Type declaringType)
Parameters
declaringTypeTypeThe variant that is missing its entering event.
Remarks
A variant with no entering event could never be created, and - because every other handler on a variant is update-only - would silently never be written to at all.