00001 /* 00002 * Game Genie Encoder/Decoder 00003 * Copyright (C) 2004-2006 emuWorks 00004 * http://games.technoplaza.net/ 00005 * 00006 * This file is part of Game Genie Encoder/Decoder. 00007 * 00008 * Game Genie Encoder/Decoder is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * Game Genie Encoder/Decoder is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with Game Genie Encoder/Decoder; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 // $Id: invalidgamegeniecode.hh,v 1.7 2006/08/18 22:17:24 technoplaza Exp $ 00024 00025 #ifndef _INVALIDGAMEGENIECODEEXCEPTION_HH 00026 #define _INVALIDGAMEGENIECODEEXCEPTION_HH 00027 00028 #include <stdexcept> 00029 00030 namespace emuWorks { 00031 /** 00032 * An exception thrown when a game genie code is invalid. 00033 */ 00034 class InvalidGameGenieCodeException : public std::runtime_error { 00035 public: 00036 /** 00037 * Constructor for an InvalidGameGenieCodeException. 00038 */ 00039 InvalidGameGenieCodeException(); 00040 }; 00041 00042 inline InvalidGameGenieCodeException::InvalidGameGenieCodeException() : 00043 std::runtime_error("InvalidGameGenieCodeException") {} 00044 } 00045 00046 #endif 00047