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 window on which to render component.";
37 if (!exceptionDetail.empty()) {
38 _msg +=
"\n(" + exceptionDetail +
")";
40 _buffer = _msg.c_str();
52 _msg =
"Error: There is no event manager that can be used to track user inputs.";
53 if (!exceptionDetail.empty()) {
54 _msg +=
"\n(" + exceptionDetail +
")";
56 _buffer = _msg.c_str();
68 _msg =
"Error: There is no spritesheet set.\n";
69 _msg +=
"The spritesheet class cannot be called if there is ";
70 _msg +=
"no spritesheet to display.";
71 if (!exceptionDetail.empty()) {
72 _msg +=
"\n(" + exceptionDetail +
")";
74 _buffer = _msg.c_str();
86 _msg =
"Error: There is no icon set.\n";
87 _msg +=
"The icon class cannot be called if there is ";
88 _msg +=
"no icon to display.";
89 if (!exceptionDetail.empty()) {
90 _msg +=
"\n(" + exceptionDetail +
")";
92 _buffer = _msg.c_str();
104 _msg =
"Error: There is no background set.\n";
105 _msg +=
"The Image component class cannot be called if there is ";
106 _msg +=
"no background to display.";
107 if (!exceptionDetail.empty()) {
108 _msg +=
"\n(" + exceptionDetail +
")";
110 _buffer = _msg.c_str();
122 _msg =
"Error: There is no collision set to be called.";
123 if (!exceptionDetail.empty()) {
124 _msg +=
"\n(" + exceptionDetail +
")";
126 _buffer = _msg.c_str();
138 _msg =
"Error: There is no animation set to be used.";
139 if (!exceptionDetail.empty()) {
140 _msg +=
"\n(" + exceptionDetail +
")";
142 _buffer = _msg.c_str();
154 _msg =
"Error: There are no frames in the animation.";
155 if (!exceptionDetail.empty()) {
156 _msg +=
"\n(" + exceptionDetail +
")";
158 _buffer = _msg.c_str();
170 _msg =
"Error: There is no sprite set to be used.";
171 if (!exceptionDetail.empty()) {
172 _msg +=
"\n(" + exceptionDetail +
")";
174 _buffer = _msg.c_str();
186 _msg =
"Error: There is no ButtonComponent set to be used.";
187 if (!exceptionDetail.empty()) {
188 _msg +=
"\n(" + exceptionDetail +
")";
190 _buffer = _msg.c_str();
202 _msg =
"Error: There is no font ";
203 if (!fontName.empty()) {
204 _msg +=
"called " + fontName +
" ";
206 _msg +=
"set to be used.";
207 if (!exceptionDetail.empty()) {
208 _msg +=
"\n(" + exceptionDetail +
")";
210 _buffer = _msg.c_str();
222 _msg =
"Error: There is no colour to be stored or rendered. ";
223 if (!exceptionDetail.empty()) {
224 _msg +=
"( " + exceptionDetail +
")";
226 _buffer = _msg.c_str();
238 _msg =
"Error: There is no text component.";
239 if (!errorReason.empty()) {
240 _msg +=
"\n(" + errorReason +
")";
242 _buffer = _msg.c_str();
254 _msg =
"Error: There is no texture component.";
255 if (!errorReason.empty()) {
256 _msg +=
"\n(" + errorReason +
")";
258 _buffer = _msg.c_str();
270 _msg =
"Error: There is no text instance that can be rendered.";
271 if (!errorReason.empty()) {
272 _msg +=
"\n(" + errorReason +
")";
274 _buffer = _msg.c_str();
286 _msg =
"Error: There is no shape instance that can be rendered.";
287 if (!errorReason.empty()) {
288 _msg +=
"\n(" + errorReason +
")";
290 _buffer = _msg.c_str();
302 _msg =
"Error: There is no image instance that can be rendered.";
303 if (!errorReason.empty()) {
304 _msg +=
"\n(" + errorReason +
")";
306 _buffer = _msg.c_str();
318 _msg =
"Error: There is no sprite instance that can be rendered.";
319 if (!errorReason.empty()) {
320 _msg +=
"\n(" + errorReason +
")";
322 _buffer = _msg.c_str();
334 _msg =
"Error: There is no button instance that can be rendered.";
335 if (!errorReason.empty()) {
336 _msg +=
"\n(" + errorReason +
")";
338 _buffer = _msg.c_str();
350 _msg =
"Error: There is no configuration for the title font in the toml's configuration file ";
351 if (!tomlPath.empty()) {
352 _msg +=
"path " + tomlPath +
" ";
354 _msg +=
"that is set to be used.";
355 _buffer = _msg.c_str();
367 _msg =
"Error: There is no configuration for the body font in the toml's configuration file ";
368 if (!tomlPath.empty()) {
369 _msg +=
"path " + tomlPath +
" ";
371 _msg +=
"that is set to be used.";
372 _buffer = _msg.c_str();
384 _msg =
"Error: There is no configuration for the default font in the toml's configuration file ";
385 if (!tomlPath.empty()) {
386 _msg +=
"path " + tomlPath +
" ";
388 _msg +=
"that is set to be used.";
389 _buffer = _msg.c_str();
401 _msg =
"Error: There is no configuration for the button font in the toml's configuration file ";
402 if (!tomlPath.empty()) {
403 _msg +=
"path " + tomlPath +
" ";
405 _msg +=
"that is set to be used.";
406 _buffer = _msg.c_str();
418 _msg =
"Error: There is no configuration for the default font in the toml's configuration file ";
419 if (!tomlPath.empty()) {
420 _msg +=
"path " + tomlPath +
" ";
422 _msg +=
"that is set to be used.";
423 _buffer = _msg.c_str();
435 _msg =
"Error: There is no toml ";
436 if (!tomlKey.empty()) {
437 _msg +=
"key '" + tomlKey +
"'";
438 if (!tomlPath.empty()) {
439 _msg +=
" in the toml path " + tomlPath +
" ";
442 _msg +=
"set to be used.";
443 _buffer = _msg.c_str();
455 _msg =
"Error: There are no sprites in the provided configuration file.\n";
456 if (!tomlKey.empty()) {
457 _msg +=
"The key '" + tomlKey +
"'";
458 if (!tomlPath.empty()) {
459 _msg +=
" was not found in the toml file path " + tomlPath +
".";
462 _buffer = _msg.c_str();
474 _msg =
"Error: There is no music in the provided configuration file.\n";
475 if (!tomlKey.empty()) {
476 _msg +=
"The key '" + tomlKey +
"'";
477 if (!tomlPath.empty()) {
478 _msg +=
" was not found in the toml file path " + tomlPath +
".";
481 _buffer = _msg.c_str();
493 _msg =
"Error: There are no sprites in the provided configuration file.\n";
494 if (!tomlKey.empty()) {
495 _msg +=
"The key '" + tomlKey +
"'";
496 if (!tomlPath.empty()) {
497 _msg +=
" was not found in the toml file path " + tomlPath +
".";
500 _buffer = _msg.c_str();
512 _msg =
"Error: There are no icons in the provided configuration file.\n";
513 if (!tomlKey.empty()) {
514 _msg +=
"The key '" + tomlKey +
"'";
515 if (!tomlPath.empty()) {
516 _msg +=
" was not found in the toml file path " + tomlPath +
".";
519 _buffer = _msg.c_str();
531 _msg =
"Error: There are no backgrounds in the provided configuration file.\n";
532 if (!tomlKey.empty()) {
533 _msg +=
"The key '" + tomlKey +
"'";
534 if (!tomlPath.empty()) {
535 _msg +=
" was not found in the toml file path " + tomlPath +
".";
538 _buffer = _msg.c_str();
550 _msg =
"Error: There is no running network thread to use for the function you called.\n";
551 if (!exceptionDetails.empty()) {
552 _msg +=
"Additional details: (" + exceptionDetails +
")";
554 _buffer = _msg.c_str();
566 _msg =
"Error: There is no network class to be passed\n";
567 if (!exceptionDetails.empty()) {
568 _msg +=
"Additional details: (" + exceptionDetails +
")";
570 _buffer = _msg.c_str();
File in charge of informing the user that there isn't the element they tried to access.
NoActiveNetworkThread(const std::string &exceptionDetails="")
Construct a new No Active Network Thread object.
const char * what() const noexcept
Retrieves the error message.
~NoAnimationFrames()
Destroy the No Animation Frames object.
NoAnimationFrames(const std::string &exceptionDetail="")
Construct a new No Animation Frames object.
const char * what() const noexcept
Retrieves the error message.
const char * what() const noexcept
Retrieves the error message.
NoAnimation(const std::string &exceptionDetail="")
Construct a new No Animation object.
~NoAnimation()
Destroy the No Animation object.
NoBackgroundInConfigFile(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No Background In Config File object.
const char * what() const noexcept
Retrieves the error message.
~NoBackgroundInConfigFile()
NoBackground(const std::string &exceptionDetail="")
Construct a new No Sprite Sheet object.
~NoBackground()
Destroy the No Sprite Sheet object.
const char * what() const noexcept
Retrieves the error message.
const char * what() const noexcept
Retrieves the error message.
NoBodyFontConfiguration(const std::string &tomlPath="")
Construct a new No Body Font Configuration object.
~NoBodyFontConfiguration()
Destroy the No Body Font Configuration object.
NoCollision(const std::string &exceptionDetail="")
Construct a new No Collision object.
~NoCollision()
Destroy the No Collision object.
const char * what() const noexcept
Retrieves the error message.
const char * what() const noexcept
Retrieves the error message.
~NoColour()
Destroy the No Colour object.
NoColour(const std::string &exceptionDetail="")
Construct a new No Colour object.
~NoDefaultFontConfiguration()
Destroy the No Default Font Configuration object.
NoDefaultFontConfiguration(const std::string &tomlPath="")
Construct a new No Default Font Configuration object.
const char * what() const noexcept
Retrieves the error message.
~NoEventManager()
Destroy the No Event Manager object.
const char * what() const noexcept
Retrieves the error message.
NoEventManager(const std::string &exceptionDetail="")
Construct a new No Event Manager object.
const char * what() const noexcept
Retrieves the error message.
NoFlagParameter(const std::string &error="")
Construct a new No Flag Parameter object.
~NoFlagParameter()
Destroy the No Flag Parameter object.
const char * what() const noexcept
Retrieves the error message.
NoFontInConfigFile(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No Font In Config File object.
const char * what() const noexcept
Retrieves the error message.
~NoFont()
Destroy the No Font object.
NoFont(const std::string &fontName="", const std::string &exceptionDetail="")
Construct a new No Font object.
const char * what() const noexcept
Retrieves the error message.
NoIconInConfigFile(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No Icon In Config File object.
NoIcon(const std::string &exceptionDetail="")
Construct a new No Sprite Sheet object.
~NoIcon()
Destroy the No Sprite Sheet object.
const char * what() const noexcept
Retrieves the error message.
~NoMusicInConfigFile()
Destroy the No Music In Config File object.
NoMusicInConfigFile(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No Music In Config File object.
const char * what() const noexcept
Retrieves the error message.
NoNetworkClass(const std::string &exceptionDetails="")
Construct a new No Network Class object.
const char * what() const noexcept
Retrieves the error message.
NoRenderableImage(const std::string &errorReason="")
Construct a new No Renderable Image object.
const char * what() const noexcept
Retrieves the error message.
~NoRenderableImage()
Destroy the No Renderable Image object.
NoRenderableShape(const std::string &errorReason="")
Construct a new No Renderable Shape object.
const char * what() const noexcept
Retrieves the error message.
~NoRenderableShape()
Destroy the No Renderable Shape object.
const char * what() const noexcept
Retrieves the error message.
~NoRenderableSprite()
Destroy the No Renderable Sprite object.
NoRenderableSprite(const std::string &errorReason="")
Construct a new No Renderable Sprite object.
~NoRenderableText()
Destroy the No Renderable Text object.
NoRenderableText(const std::string &errorReason="")
Construct a new No Renderable Text object.
const char * what() const noexcept
Retrieves the error message.
~NoSpriteSheet()
Destroy the No Sprite Sheet object.
const char * what() const noexcept
Retrieves the error message.
NoSpriteSheet(const std::string &exceptionDetail="")
Construct a new No Sprite Sheet object.
~NoSprite()
Destroy the No Sprite object.
NoSprite(const std::string &exceptionDetail="")
Construct a new No Sprite object.
const char * what() const noexcept
Retrieves the error message.
~NoSpritesInConfigFile()
Destroy the No Sprites In Config File object.
const char * what() const noexcept
Retrieves the error message.
NoSpritesInConfigFile(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No Sprites In Config File object.
const char * what() const noexcept
Retrieves the error message.
~NoTOMLKey()
Destroy the No toml Key object.
NoTOMLKey(const std::string &tomlPath="", const std::string &tomlKey="")
Construct a new No toml Key object.
NoTOML(const std::string &tomlPath="")
Construct a new No toml object.
~NoTOML()
Destroy the No toml object.
const char * what() const noexcept
Retrieves the error message.
~NoText()
Destroy the No Text object.
const char * what() const noexcept
Retrieves the error message.
NoText(const std::string &errorReason="")
Construct a new No Text object.
~NoTexture()
Destroy the No Texture object.
const char * what() const noexcept
Retrieves the error message.
NoTexture(const std::string &errorReason="")
Construct a new No Texture object.
~NoTitleFontConfiguration()
Destroy the No Title Font Configuration object.
NoTitleFontConfiguration(const std::string &tomlPath="")
Construct a new No Title Font Configuration object.
const char * what() const noexcept
Retrieves the error message.
~NoWindow()
Destroy the No Window object.
const char * what() const noexcept
Retrieves the error message.
NoWindow(const std::string &exceptionDetail="")
Construct a new No Window object.