Skip to main content

Module errors

Module errors 

Source
Expand description

§Error Handling for RPG Chat Command Parser

This module defines custom errors for the command parser, using the thiserror crate.

§Errors

  • InvalidSyntax: Indicates a syntax error in the input command.
  • MissingFlagKey: A flag is missing its key.
  • MissingFlagValue: A flag is missing its value.
  • MissingVerb: The command is missing a verb.

Enums§

CommandError
Custom error type for command parsing errors.