On this page
article
peary::config::InvalidTypeError
peary::config::InvalidTypeError
Exception class for invalid configuration types.
#include <peary/config/exceptions.hpp>
Inherits from peary::config::ConfigurationError, peary::utils::RuntimeError, peary::utils::Exception, std::exception
Public Functions
| Name | |
|---|---|
| InvalidTypeError(std::string_view key, std::string_view section, std::string_view ktype, std::string_view etype, std::string_view reason ="")Constructor for InvalidTypeError. |
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 InvalidTypeError
inline explicit InvalidTypeError(
std::string_view key,
std::string_view section,
std::string_view ktype,
std::string_view etype,
std::string_view reason =""
)
Constructor for InvalidTypeError.
Parameters:
- key The name of the key with an invalid type
- section The name of the section where the key is expected
- ktype The actual type of the key
- etype The expected type of the key
- reason An optional reason for the invalidity of the type
Updated on 2026-01-16 at 00:29:05 +0100