Class CommandPreconditionFailed
- Namespace
- Signal.Application.Commands
- Assembly
- Signal.Application.dll
A precondition rejected the invocation; the command did not run.
public sealed record CommandPreconditionFailed : IEquatable<CommandPreconditionFailed>
- Inheritance
-
CommandPreconditionFailed
- Implements
- Inherited Members
Constructors
CommandPreconditionFailed(ParsedCommand, CommandDescriptor, string?)
A precondition rejected the invocation; the command did not run.
public CommandPreconditionFailed(ParsedCommand Parsed, CommandDescriptor Command, string? Reason)
Parameters
ParsedParsedCommandThe parsed invocation.
CommandCommandDescriptorThe matched command.
ReasonstringA user-facing reason, or null to fail silently.
Properties
Command
The matched command.
public CommandDescriptor Command { get; init; }
Property Value
Parsed
The parsed invocation.
public ParsedCommand Parsed { get; init; }
Property Value
Reason
A user-facing reason, or null to fail silently.
public string? Reason { get; init; }