Class ConstraintViolationMessage
- Namespace
- Cratis.Chronicle.Events.Constraints
- Assembly
- Cratis.Chronicle.dll
Represents the message from a violation of a constraint.
public record ConstraintViolationMessage : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<ConstraintViolationMessage>
- Inheritance
-
ConstraintViolationMessage
- Implements
- Inherited Members
Constructors
ConstraintViolationMessage(string)
Represents the message from a violation of a constraint.
public ConstraintViolationMessage(string Message)
Parameters
Message
stringThe inner value.
Fields
NotDefined
Represents a constraint violation message that is not defined.
public static readonly ConstraintViolationMessage NotDefined
Field Value
Properties
Message
The inner value.
public string Message { get; init; }
Property Value
Operators
implicit operator ConstraintViolationMessage(string)
Implicitly convert from a string to a ConstraintViolationMessage.
public static implicit operator ConstraintViolationMessage(string message)
Parameters
message
stringName to convert.