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

This is the class in charge of informing the user that the sprite configuration they provided is incorrect. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidSpriteConfiguration:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidSpriteConfiguration:
Collaboration graph

Public Member Functions

 InvalidSpriteConfiguration (const std::string &userConfiguration="", const std::string &spriteName="", const std::string &exceptionDetail="")
 Construct a new Invalid Sprite Configuration object.
 
 ~InvalidSpriteConfiguration ()
 Destroy the Invalid Sprite Configuration object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

This is the class in charge of informing the user that the sprite configuration they provided is incorrect.

Definition at line 148 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidSpriteConfiguration()

CustomExceptions::InvalidSpriteConfiguration::InvalidSpriteConfiguration ( const std::string & userConfiguration = "",
const std::string & spriteName = "",
const std::string & exceptionDetail = "" )

Construct a new Invalid Sprite Configuration object.

Parameters
userConfigurationThe configuration section provided by the user.
spriteNameThe name of the sprite that was affected by the configuration.
exceptionDetailThe detail about the reason why the error was triggered.

Definition at line 92 of file Invalid.cpp.

◆ ~InvalidSpriteConfiguration()

CustomExceptions::InvalidSpriteConfiguration::~InvalidSpriteConfiguration ( )

Destroy the Invalid Sprite Configuration object.

Definition at line 114 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 116 of file Invalid.cpp.


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