ppALIGN API documentation
src/exceptions.hpp
00001 /****************************************************************************** 00002 Copyright 2009 Stefan Wolfsheimer & Gregory Nuel. 00003 00004 This file is part of ppALIGN 00005 00006 ppALIGN is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 ppALIGN is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with ppALIGN; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 *******************************************************************************/ 00020 00021 #ifndef __EXCEPTIONS_HPP__ 00022 #define __EXCEPTIONS_HPP__ 00023 #include <string> 00024 #include <sstream> 00025 #include <iostream> 00026 00027 class Alphabet; 00028 class Pair; 00033 class ExceptionBase 00034 { 00035 public: 00036 ExceptionBase(const std::string & msg); 00037 ExceptionBase(); 00038 void SetMessage(std::stringstream & ost); 00039 00040 friend std::ostream & operator<<(std::ostream & ost, const ExceptionBase & e); 00041 00042 protected: 00045 std::string errMsg; 00046 }; 00047 00048 00049 00050 00051 #endif