00001 /* 00002 * Super Metroid SRAM Editor 00003 * Copyright (C) 2005 emuWorks 00004 * http://games.technoplaza.net/ 00005 * 00006 * This file is part of Super Metroid SRAM Editor. 00007 * 00008 * Super Metroid SRAM Editor 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 * Super Metroid SRAM Editor 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 Super Metroid SRAM Editor; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 // $Id: InvalidSRAMFileException.hh,v 1.1 2005/10/07 13:01:25 technoplaza Exp $ 00024 00025 #ifndef _SMSE_INVALIDSRAMFILEEXCEPTION_HH_ 00026 #define _SMSE_INVALIDSRAMFILEEXCEPTION_HH_ 00027 00028 #include <stdexcept> 00029 00030 namespace smse { 00031 /// Exception thrown when a file is not a valid SRAM file. 00032 class InvalidSRAMFileException : public std::runtime_error { 00033 public: 00034 /** 00035 * Creates a new InvalidSRAMFileException. 00036 * 00037 * @param message The error message. 00038 */ 00039 InvalidSRAMFileException(const std::string &message); 00040 }; 00041 00042 inline InvalidSRAMFileException:: 00043 InvalidSRAMFileException(const std::string &message) : 00044 std::runtime_error(message) {} 00045 } 00046 00047 #endif 00048