epr24pr3_ojanssen2/Exceptions/ExitGame.h

23 lines
306 B
C
Raw Normal View History

2024-12-17 14:31:47 +01:00
#ifndef EXITGAME_H
#define EXITGAME_H
namespace game_exceptions
{
class ExitGame
{
string why;
public:
ExitGame(string why): why(why)
{
}
string what()
{
return this->why;
}
};
} // game_exceptions
#endif //EXITGAME_H