ChainCLI
A modern C++20 command-line interface library
Loading...
Searching...
No Matches
cli::commands::CommandNotFoundException Class Reference

Exception thrown when a command is not found in the command tree. More...

#include <command_tree.h>

Inheritance diagram for cli::commands::CommandNotFoundException:

Public Member Functions

 CommandNotFoundException (const std::string &missingId, const std::vector< std::string > &chain)
 Construct a new CommandNotFoundException.
 
const std::string & missingId () const noexcept
 
const std::vector< std::string > & insertChain () const noexcept
 

Detailed Description

Exception thrown when a command is not found in the command tree.

Constructor & Destructor Documentation

◆ CommandNotFoundException()

cli::commands::CommandNotFoundException::CommandNotFoundException ( const std::string &  missingId,
const std::vector< std::string > &  chain 
)
inline

Construct a new CommandNotFoundException.

Parameters
missingIdThe ID of the missing command.
chainThe chain of command IDs leading to the missing command.

The documentation for this class was generated from the following files: