21 _msg =
"Error: There is no parameter passed to the flag.\n";
22 _msg +=
"The concerned flag is: ";
24 _buffer = _msg.c_str();
36 _msg =
"Error: There is no configuration for the default font in the toml's configuration file ";
37 if (!tomlPath.empty()) {
38 _msg +=
"path " + tomlPath +
" ";
40 _msg +=
"that is set to be used.";
41 _buffer = _msg.c_str();
53 _msg =
"Error: There is no toml ";
54 if (!tomlKey.empty()) {
55 _msg +=
"key '" + tomlKey +
"'";
56 if (!tomlPath.empty()) {
57 _msg +=
" in the toml path " + tomlPath +
" ";
60 _msg +=
"set to be used.";
61 _buffer = _msg.c_str();
73 _msg =
"Error: There is no running network to use for the function you called.\n";
74 if (!exceptionDetails.empty()) {
75 _msg +=
"Additional details: (" + exceptionDetails +
")";
77 _buffer = _msg.c_str();
89 _msg =
"Error: There is no active address manager class to hold the connection information of the program.\n";
90 if (!exceptionDetails.empty()) {
91 _msg +=
"Additional details: (" + exceptionDetails +
")";
93 _buffer = _msg.c_str();
105 _msg =
"Error: There is no network class to be passed\n";
106 if (!exceptionDetails.empty()) {
107 _msg +=
"Additional details: (" + exceptionDetails +
")";
109 _buffer = _msg.c_str();
121 _msg =
"Error: There is no audio stream available.\n";
122 if (!exceptionDetails.empty()) {
123 _msg +=
"Additional details: (" + exceptionDetails +
")";
125 _buffer = _msg.c_str();
137 _msg =
"Error: There is no compressed audio data available.\n";
138 if (!exceptionDetails.empty()) {
139 _msg +=
"Additional details: (" + exceptionDetails +
")";
141 _buffer = _msg.c_str();
153 _msg =
"Error: There is no audio packet available.\n";
154 if (!exceptionDetails.empty()) {
155 _msg +=
"Additional details: (" + exceptionDetails +
")";
157 _buffer = _msg.c_str();
This file contains the definitions of custom exception classes used to inform the user about missing ...
const char * what() const noexcept
Retrieves the error message.
NoActiveNetwork(const std::string &exceptionDetails="")
Construct a new NoActiveNetwork object.
const char * what() const noexcept
Retrieves the error message.
NoAddressManager(const std::string &exceptionDetails="")
Construct a new NoAddressManager object.
const char * what() const noexcept
Retrieves the error message.
~NoAudioPacket()
Destroy the NoAudioPacket object.
NoAudioPacket(const std::string &exceptionDetails="")
Construct a new NoAudioPacket object.
~NoAudioStream()
Destroy the NoAudioStream object.
const char * what() const noexcept
Retrieves the error message.
NoAudioStream(const std::string &exceptionDetails="")
Construct a new NoAudioStream object.
~NoCompressedAudio()
Destroy the NoCompressedAudio object.
const char * what() const noexcept
Retrieves the error message.
NoCompressedAudio(const std::string &exceptionDetails="")
Construct a new NoCompressedAudio object.
const char * what() const noexcept
Retrieves the error message.
NoFlagParameter(const std::string &error="")
Construct a new NoFlagParameter object.
~NoFlagParameter()
Destroy the NoFlagParameter object.
NoNetworkClass(const std::string &exceptionDetails="")
Construct a new NoNetworkClass object.
const char * what() const noexcept
Retrieves the error message.
const char * what() const noexcept
Retrieves the error message.
~NoTOMLKey()
Destroy the NoTOMLKey object.
NoTOMLKey(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new NoTOMLKey object.
NoTOML(const std::string &tomlPath="")
Construct a new NoTOML object.
~NoTOML()
Destroy the NoTOML object.
const char * what() const noexcept
Retrieves the error message.