22 lines
331 B
C++
22 lines
331 B
C++
#ifndef MALFORMEDMAZE_H
|
|
#define MALFORMEDMAZE_H
|
|
|
|
namespace game_exceptions
|
|
{
|
|
class MalformedMaze
|
|
{
|
|
string why;
|
|
|
|
public:
|
|
MalformedMaze(string why): why(why)
|
|
{
|
|
}
|
|
|
|
string what()
|
|
{
|
|
return this->why;
|
|
}
|
|
};
|
|
} // game_exceptions
|
|
|
|
#endif //MALFORMEDMAZE_H
|