Class ConstraintViolation
- Namespace
- Cratis.Chronicle.Events.Constraints
- Assembly
- Cratis.Chronicle.dll
Represents a violation of a constraint.
public record ConstraintViolation : IEquatable<ConstraintViolation>
- Inheritance
-
ConstraintViolation
- Implements
- Inherited Members
Constructors
ConstraintViolation(EventTypeId, EventSequenceNumber, ConstraintType, ConstraintName, ConstraintViolationMessage, ConstraintViolationDetails)
Represents a violation of a constraint.
public ConstraintViolation(EventTypeId EventTypeId, EventSequenceNumber SequenceNumber, ConstraintType ConstraintType, ConstraintName ConstraintName, ConstraintViolationMessage Message, ConstraintViolationDetails Details)
Parameters
EventTypeIdEventTypeIdThe EventTypeId where the violation occurred.
SequenceNumberEventSequenceNumberThe EventSequenceNumber where the violation occurred.
ConstraintTypeConstraintTypeThe ConstraintType that was violated.
ConstraintNameConstraintNameConstraintName that was violated.
MessageConstraintViolationMessageConstraintViolationMessage with more details.
DetailsConstraintViolationDetailsConstraintViolationDetails with more details.
Properties
ConstraintName
ConstraintName that was violated.
public ConstraintName ConstraintName { get; init; }
Property Value
ConstraintType
The ConstraintType that was violated.
public ConstraintType ConstraintType { get; init; }
Property Value
Details
ConstraintViolationDetails with more details.
public ConstraintViolationDetails Details { get; init; }
Property Value
EventTypeId
The EventTypeId where the violation occurred.
public EventTypeId EventTypeId { get; init; }
Property Value
Message
ConstraintViolationMessage with more details.
public ConstraintViolationMessage Message { get; init; }
Property Value
SequenceNumber
The EventSequenceNumber where the violation occurred.
public EventSequenceNumber SequenceNumber { get; init; }