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

Exception class for invalid TOML files. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidTOML:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidTOML:
Collaboration graph

Public Member Functions

 InvalidTOML (const std::string &path="", const std::string &error="")
 Construct a new InvalidTOML object.
 
 ~InvalidTOML ()
 Destroy the InvalidTOML object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

Exception class for invalid TOML files.

Definition at line 241 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidTOML()

CustomExceptions::InvalidTOML::InvalidTOML ( const std::string & path = "",
const std::string & error = "" )

Construct a new InvalidTOML object.

Parameters
pathThe path to the TOML file provided by the user.
errorAdditional information about the error.

Definition at line 171 of file Invalid.cpp.

◆ ~InvalidTOML()

CustomExceptions::InvalidTOML::~InvalidTOML ( )

Destroy the InvalidTOML object.

Definition at line 179 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 181 of file Invalid.cpp.


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