00001 00002 #include "zipios-config.h" 00003 00004 #include "meta-iostreams.h" 00005 00006 #include "fcollexceptions.h" 00007 00008 namespace zipios { 00009 00010 using std::cerr ; 00011 using std::endl ; 00012 00013 IOException::IOException() throw () 00014 : _what( "I/O exception" ) {} 00015 00016 IOException::IOException( const string &msg ) throw () 00017 : _what( msg ) {} 00018 00019 IOException::IOException( const IOException &src ) throw () 00020 : std::exception(), _what( src._what ) {} 00021 00022 00023 IOException &IOException::operator= ( const IOException &src ) throw () { 00024 _what = src._what ; 00025 return *this ; 00026 } 00027 00028 00029 const char *IOException::what() const throw () { 00030 return _what.c_str() ; 00031 } 00032 00033 IOException::~IOException() throw () {} 00034 00035 00036 00037 00038 00039 00040 FCollException::FCollException() throw () 00041 : _what( "FileCollection exception" ) {} 00042 00043 FCollException::FCollException( const string &msg ) throw () 00044 : _what( msg ) {} 00045 00046 FCollException::FCollException( const FCollException &src ) throw () 00047 : std::exception(),_what( src._what ) {} 00048 00049 00050 FCollException &FCollException::operator= ( const FCollException &src ) throw () { 00051 _what = src._what ; 00052 return *this ; 00053 } 00054 00055 00056 const char *FCollException::what() const throw () { 00057 return _what.c_str() ; 00058 } 00059 00060 FCollException::~FCollException() throw () {} 00061 00062 00063 00064 00065 00066 00067 InvalidStateException::InvalidStateException() throw () 00068 : _what( "InvalidState exception" ) {} 00069 00070 InvalidStateException::InvalidStateException( const string &msg ) throw () 00071 : _what( msg ) {} 00072 00073 InvalidStateException:: 00074 InvalidStateException( const InvalidStateException &src ) throw () 00075 : std::exception(), _what( src._what ) {} 00076 00077 00078 InvalidStateException &InvalidStateException:: 00079 operator= ( const InvalidStateException &src ) throw () { 00080 _what = src._what ; 00081 return *this ; 00082 } 00083 00084 00085 const char *InvalidStateException::what() const throw () { 00086 return _what.c_str() ; 00087 } 00088 00089 InvalidStateException::~InvalidStateException() throw () {} 00090 00091 00092 00093 00094 00095 Exception::Exception() throw () 00096 : _what( "Exception" ) {} 00097 00098 Exception::Exception( const string &msg ) throw () 00099 : _what( msg ) {} 00100 00101 Exception:: 00102 Exception( const Exception &src ) throw () 00103 : std::exception(),_what( src._what ) {} 00104 00105 00106 Exception &Exception:: 00107 operator= ( const Exception &src ) throw () { 00108 _what = src._what ; 00109 return *this ; 00110 } 00111 00112 00113 const char *Exception::what() const throw () { 00114 return _what.c_str() ; 00115 } 00116 00117 Exception::~Exception() throw () {} 00118 00119 00120 } // namespace 00121 00127 /* 00128 Zipios++ - a small C++ library that provides easy access to .zip files. 00129 Copyright (C) 2000 Thomas Søndergaard 00130 00131 This library is free software; you can redistribute it and/or 00132 modify it under the terms of the GNU Lesser General Public 00133 License as published by the Free Software Foundation; either 00134 version 2 of the License, or (at your option) any later version. 00135 00136 This library is distributed in the hope that it will be useful, 00137 but WITHOUT ANY WARRANTY; without even the implied warranty of 00138 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00139 Lesser General Public License for more details. 00140 00141 You should have received a copy of the GNU Lesser General Public 00142 License along with this library; if not, write to the Free Software 00143 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00144 */