Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
CustomExceptions::InvalidTOMLKeyType Class Reference

Exception class for invalid TOML key types. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidTOMLKeyType:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidTOMLKeyType:
Collaboration graph

Public Member Functions

 InvalidTOMLKeyType (const std::string &tomlPath="", const std::string &tomlKey="", const std::string &currentType="", const std::string &expectedType="")
 Construct a new InvalidTOMLKeyType object.
 
 ~InvalidTOMLKeyType ()
 Destroy the InvalidTOMLKeyType object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

Exception class for invalid TOML key types.

Definition at line 268 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidTOMLKeyType()

CustomExceptions::InvalidTOMLKeyType::InvalidTOMLKeyType ( const std::string & tomlPath = "",
const std::string & tomlKey = "",
const std::string & currentType = "",
const std::string & expectedType = "" )

Construct a new InvalidTOMLKeyType object.

Parameters
tomlPathThe path to the TOML file.
tomlKeyThe key that contains the invalid type.
currentTypeThe current type of the key in the configuration file.
expectedTypeThe expected type of the key.

Definition at line 186 of file Invalid.cpp.

◆ ~InvalidTOMLKeyType()

CustomExceptions::InvalidTOMLKeyType::~InvalidTOMLKeyType ( )

Destroy the InvalidTOMLKeyType object.

Definition at line 200 of file Invalid.cpp.

Member Function Documentation

◆ what()

const char * CustomExceptions::InvalidTOMLKeyType::what ( ) const
noexcept

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 202 of file Invalid.cpp.


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