peary::config::MissingKeyError

Exception class for missing configuration keys.

#include <peary/config/exceptions.hpp>

Inherits from peary::config::ConfigurationError, peary::utils::RuntimeError, peary::utils::Exception, std::exception

Public Functions

Name
MissingKeyError(std::string_view key, std::string_view section)Constructor for MissingKeyError.

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

Public Functions Documentation

function MissingKeyError

  inline explicit MissingKeyError(
    std::string_view key,
    std::string_view section
)
  

Constructor for MissingKeyError.

Parameters:

  • key The name of the missing key
  • section The name of the section where the key is expected

Updated on 2025-11-14 at 11:31:23 +0100