1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 2 /* 3 * Bomb-her-man 4 * Copyright (C) Marc-Antoine Perennou 2010 <Marc-Antoine@Perennou.com> 5 * 6 * Bomb-her-man is free software: you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * Bomb-her-man is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 * See the GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License along 17 * with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef _TOO_MANY_PLAYERS_EXCEPTION_HPP_ 21 #define _TOO_MANY_PLAYERS_EXCEPTION_HPP_ 22 23 #include "exceptions/exception.hpp" 24 25 namespace bombherman 26 { 27 namespace exceptions 28 { 29 /// Exception thrown when we want to add more players than we're allowed to 30 class TooManyPlayersException : 31 public Exception 32 { 33 public: 34 /// Constructor TooManyPlayersException()35 TooManyPlayersException() throw() : 36 Exception("Too many player creations have been called, you have reached the maximum number allowed.") {} 37 38 /// Destructor ~TooManyPlayersException()39 virtual ~TooManyPlayersException() throw () {} 40 }; 41 } 42 } 43 44 #endif // _TOO_MANY_PLAYERS_EXCEPTION_HPP_ 45 46