On this page
article
peary::utils::InvalidCommandError
peary::utils::InvalidCommandError
Exception class for invalid commands. More…
#include <peary/utils/exceptions.hpp>
Inherits from peary::utils::RuntimeError, peary::utils::Exception, std::exception
Public Functions
| Name | |
|---|---|
| InvalidCommandError(std::string_view cmd, std::string_view reason ="")Constructor for InvalidCommandError. |
Additional inherited members
Public Functions inherited from peary::utils::RuntimeError
| Name | |
|---|---|
| RuntimeError(std::string what_arg)Constructor for RuntimeError. |
Protected Functions inherited from peary::utils::RuntimeError
| Name | |
|---|---|
| RuntimeError() =defaultDefault constructor for RuntimeError. |
Public Functions inherited from peary::utils::Exception
| Name | |
|---|---|
| Exception(std::string what_arg)Constructor for Exception. | |
| const char * | what() const overrideReturn the error message. |
Protected Functions inherited from peary::utils::Exception
| Name | |
|---|---|
| Exception() =defaultDefault constructor for Exception. |
Protected Attributes inherited from peary::utils::Exception
| Name | |
|---|---|
| std::string | _message |
Detailed Description
class peary::utils::InvalidCommandError;
Exception class for invalid commands.
This class is used to represent errors that occur when an invalid command is encountered.
Public Functions Documentation
function InvalidCommandError
inline explicit InvalidCommandError(
std::string_view cmd,
std::string_view reason =""
)
Constructor for InvalidCommandError.
Parameters:
- cmd The invalid command that caused the error
- reason An optional reason for the invalid command
Updated on 2025-11-14 at 11:31:23 +0100