Files
openvehicle-api/sdv_services/core/toml_parser/exception.h
tompzf 6ed4b1534e Precommit (#1)
* first commit

* cleanup
2025-11-04 13:28:06 +01:00

20 lines
493 B
C++

#ifndef CONFIG_EXCEPTION_H
#define CONFIG_EXCEPTION_H
#include <interfaces/toml.h>
except XTOMLParseException : public sdv::toml::XTOMLParseException
{
/**
* @brief Constructor
*/
XTOMLParseException(const std::string& rss) { ssMessage = rss; };
/**
* @brief Return the explanatory string.
* @return The descriptive string.
*/
virtual const char* what() const noexcept override { return ssMessage.c_str(); }
};
#endif // !defined CONFIG_EXCEPTION_H