shm_exceptions.h
00001 00002 /*************************************************************************** 00003 * shm_exceptions.h - exceptions thrown in shmem image utils, do NOT put 00004 * your own application specific exceptions here! 00005 * 00006 * Generated: Thu Feb 09 13:06:52 2006 00007 * Copyright 2005-2007 Tim Niemueller [www.niemueller.de] 00008 * 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. A runtime exception applies to 00015 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Library General Public License for more details. 00021 * 00022 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00023 */ 00024 00025 #ifndef __FIREVISION_FVUTILS_IPC_SHM_EXCEPTIONS_H_ 00026 #define __FIREVISION_FVUTILS_IPC_SHM_EXCEPTIONS_H_ 00027 00028 #include <core/exception.h> 00029 00030 /** Throw if an inconsistent image was found. */ 00031 class InconsistentImageException : public fawkes::Exception { 00032 public: 00033 /** Constructor. 00034 * @param msg additional message 00035 */ 00036 InconsistentImageException(const char *msg) 00037 : fawkes::Exception(msg) {} 00038 }; 00039 00040 00041 /** Throw if an inconsistent LUT was found. */ 00042 class InconsistentLUTException : public fawkes::Exception { 00043 public: 00044 /** Constructor. 00045 * @param msg additional message 00046 */ 00047 InconsistentLUTException(const char *msg) 00048 : fawkes::Exception(msg) {} 00049 }; 00050 00051 00052 #endif

