reactive_graph_command_model/
error.rs1#[derive(Debug)]
2pub struct NotACommand;
3
4#[derive(Debug)]
5pub enum CommandBuilderError {
6 NotACommand,
7 MissingTrigger,
8 MissingExecutor,
9}
10
11#[derive(Debug)]
12pub struct InvalidCommandArgDefinition(pub serde_json::Error);
13
14impl PartialEq for InvalidCommandArgDefinition {
15 fn eq(&self, _: &Self) -> bool {
16 false
17 }
18}
19
20#[derive(Debug, PartialEq)]
21pub enum CommandArgsError {
22 InvalidCommandArgDefinition(InvalidCommandArgDefinition),
23 CommandArgDefinitionMissing,
24}
25
26#[derive(Debug, PartialEq)]
27pub enum CommandExecutionFailed {
28 NotACommand,
29 CommandArgsError(CommandArgsError),
30 InvalidArgument(String),
31 MissingArgumentProperty(String),
32 MissingMandatoryArgument(String),
33}
34
35#[derive(Debug)]
36pub enum NoSuchCommand {
37 CommandNotFound(String),
39 NotACommand(NotACommand),
41}