00001 /* 00002 00003 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu 00004 00005 Remove the brackets to email me. 00006 00007 This file is part of libsequence. 00008 00009 libsequence is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 libsequence is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 long with libsequence. If not, see <http://www.gnu.org/licenses/>. 00021 00022 */ 00023 00024 #include <Sequence/SeqExceptions.hpp> 00025 #include <iostream> 00026 00027 namespace Sequence 00028 { 00029 SeqException::SeqException (void):message("Generic SeqException: error encountered") 00035 { 00036 } 00037 SeqException::SeqException (const char *x):message(x) 00041 {} 00042 SeqException::~SeqException(void) 00043 {} 00044 std::ostream & SeqException::print (std::ostream & out) 00048 { 00049 out << message; 00050 return out; 00051 } 00052 std::ostream & SeqException::print (std::ostream & out) const 00056 { 00057 out << message; 00058 return out; 00059 } 00060 const char* SeqException::error (void) const 00067 { 00068 return message; 00069 } 00070 00071 badFormat::~badFormat(void) 00072 {} 00073 badFormat::badFormat (const char * x):SeqException(x) 00077 { 00078 return; 00079 } 00080 }
1.6.3