R-Type  2
Doom but in better
Loading...
Searching...
No Matches
CustomExceptions::InvalidTOMLKeyType Class Reference

This is the class in charge of informing the user that the type of the toml key is not the one that was expected. 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 Invalid toml Key Type object.
 
 ~InvalidTOMLKeyType ()
 Destroy the Invalid toml Key Type object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

This is the class in charge of informing the user that the type of the toml key is not the one that was expected.

Definition at line 737 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 Invalid toml Key Type object.

Parameters
pathThe path to the toml file
keyThe key that contains the invalid type.
typeThe type of the key in the configuration file
expectedTypeThe type that was expected of the key.

Definition at line 468 of file Invalid.cpp.

◆ ~InvalidTOMLKeyType()

CustomExceptions::InvalidTOMLKeyType::~InvalidTOMLKeyType ( )

Destroy the Invalid toml Key Type object.

Definition at line 482 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 484 of file Invalid.cpp.


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