00001 /* 00002 * 00003 * $Id$ 00004 * 00005 * This file is part of the NABOU Intrusion Detection System. 00006 * 00007 * By accessing this software, NABOU, you are duly informed 00008 * of and agree to be bound by the conditions described below 00009 * in this notice: 00010 * 00011 * This software product, NABOU, is developed by Thomas Linden 00012 * and copyrighted (C) 1999-2002 by Thomas Linden, with all 00013 * rights reserved. 00014 * 00015 * There is no charge for NABOU software. You can redistribute 00016 * it and/or modify it under the terms of the GNU General Public 00017 * License, which is incorporated by reference herein. 00018 * 00019 * NABOU is distributed WITHOUT ANY WARRANTY, IMPLIED OR EXPRESS, 00020 * OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE or that 00021 * the use of it will not infringe on any third party's intellec- 00022 * tual property rights. 00023 * 00024 * You should have received a copy of the GNU General Public 00025 * License along with NABOU. Copies can also be obtained from: 00026 * 00027 * http://www.gnu.org/copyleft/gpl.html 00028 * 00029 * or by writing to: 00030 * 00031 * Free Software Foundation, Inc. 00032 * 59 Temple Place, Suite 330 00033 * Boston, MA 02111-1307 00034 * USA 00035 * 00036 * Or contact: 00037 * 00038 * "Thomas Linden" <tom@nabou.org> 00039 * 00040 * 00041 */ 00042 00043 #ifndef HAVE_EXCEPTION_PP_H 00044 #define HAVE_EXCEPTION_PP_H 00045 00046 00047 #include <exception> 00048 #include <string> 00049 00050 /* 00051 * exception base class 00052 */ 00053 class Exception : public exception { 00054 private: 00055 00056 public: 00057 string message; /* will be set from child classes */ 00058 string _name; /* dito */ 00059 Exception(const string& msg); 00060 Exception() { _name = "Exception"; }; 00061 virtual string mout(); 00062 }; 00063 00064 #endif