Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

exceptionbase.hpp

00001 /************************************************************************************
00002  *    This file is part of the MynahSA streaming and archiving toolkit              *
00003  *    Copyright (C) 2006 Mynah-Software Ltd. All Rights Reserved.                   *
00004  *                                                                                  *
00005  *    This program is free software; you can redistribute it and/or modify          *
00006  *    it under the terms of the GNU General Public License, version 2               *
00007  *    as published by the Free Software Foundation.                                 *
00008  *                                                                                  *
00009  *    This program is distributed in the hope that it will be useful,               *
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00012  *    GNU General Public License for more details.                                  *
00013  *                                                                                  *
00014  *    You should have received a copy of the GNU General Public License along       *
00015  *    with this program; if not, write to the Free Software Foundation, Inc.,       *
00016  *    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                   *
00017  *                                                                                  *
00018  ************************************************************************************/
00019 
00020 #ifndef __exception_base_hpp
00021 #define __exception_base_hpp
00022 
00023 #include <stdexcept>
00024 
00025 namespace MynahSA {
00029   class ExceptionBase : public std::exception { 
00030   public:
00035     ExceptionBase() throw();
00036     
00042     ExceptionBase(const std::string& s);
00043     
00045     virtual ~ExceptionBase() throw();
00046     
00048     virtual const char* what() const throw();
00049   private:
00051     std::string _what;
00052   };
00053 };  // MynahSA 
00054 
00055 
00056 
00057 
00058 
00059 #endif