InvalidButtonException.hh

Go to the documentation of this file.
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: InvalidButtonException.hh,v 1.1 2005/10/08 20:03:03 technoplaza Exp $
00024 
00025 #ifndef _SMSE_INVALIDBUTTONEXCEPTION_HH_
00026 #define _SMSE_INVALIDBUTTONEXCEPTION_HH_
00027 
00028 #include <stdexcept>
00029 
00030 namespace smse {
00031     /// Exception thrown when an invalid button is detected
00032     class InvalidButtonException : public std::runtime_error {
00033     public:
00034         /**
00035          * Creates a new InvalidButtonException.
00036          */
00037         InvalidButtonException();
00038     };
00039     
00040     inline InvalidButtonException::InvalidButtonException() :
00041         std::runtime_error("error: invalid button") {}
00042 }
00043 
00044 #endif
00045 

Generated on Thu Feb 22 21:33:24 2007 for Super Metroid SRAM Editor by  doxygen 1.5.1-p1