On this page
article
peary::utils::DictionnaryError
peary::utils::DictionnaryError
Exception class for dictionary errors. More…
#include <peary/utils/exceptions.hpp>
Inherits from peary::utils::RuntimeError, peary::utils::Exception, std::exception
Public Functions
| Name | |
|---|---|
| DictionnaryError(std::string_view name, std::string_view reason ="")Constructor for DicitonnaryError. |
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::DictionnaryError;
Exception class for dictionary errors.
This class is used to represent errors that occur in a dictionary, such as when an element is not found or cannot be inserted.
Public Functions Documentation
function DictionnaryError
inline explicit DictionnaryError(
std::string_view name,
std::string_view reason =""
)
Constructor for DicitonnaryError.
Parameters:
- name The name of the dictionary where the error occurred
- reason An optional reason for the error
Updated on 2025-11-14 at 11:31:23 +0100