26 lines
349 B
C++
26 lines
349 B
C++
//
|
|
// Created by moonleay on 12/17/24.
|
|
//
|
|
|
|
#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
|