2 #include "zipios++/zipios-config.h"
4 #include "zipios++/meta-iostreams.h"
6 #include "zipios++/fcollexceptions.h"
13 IOException::IOException() throw ()
14 : _what( "I/O exception" ) {}
16 IOException::IOException( const string &msg ) throw ()
19 IOException::IOException( const IOException &src ) throw ()
20 : std::exception(), _what( src._what ) {}
23 IOException &IOException::operator= ( const IOException &src ) throw () {
29 const char *IOException::what() const throw () {
30 return _what.c_str() ;
33 IOException::~IOException() throw () {}
40 FCollException::FCollException() throw ()
41 : _what( "FileCollection exception" ) {}
43 FCollException::FCollException( const string &msg ) throw ()
46 FCollException::FCollException( const FCollException &src ) throw ()
47 : std::exception(),_what( src._what ) {}
50 FCollException &FCollException::operator= ( const FCollException &src ) throw () {
56 const char *FCollException::what() const throw () {
57 return _what.c_str() ;
60 FCollException::~FCollException() throw () {}
67 InvalidStateException::InvalidStateException() throw ()
68 : _what( "InvalidState exception" ) {}
70 InvalidStateException::InvalidStateException( const string &msg ) throw ()
73 InvalidStateException::
74 InvalidStateException( const InvalidStateException &src ) throw ()
75 : std::exception(), _what( src._what ) {}
78 InvalidStateException &InvalidStateException::
79 operator= ( const InvalidStateException &src ) throw () {
85 const char *InvalidStateException::what() const throw () {
86 return _what.c_str() ;
89 InvalidStateException::~InvalidStateException() throw () {}
95 Exception::Exception() throw ()
96 : _what( "Exception" ) {}
98 Exception::Exception( const string &msg ) throw ()
102 Exception( const Exception &src ) throw ()
103 : std::exception(),_what( src._what ) {}
106 Exception &Exception::
107 operator= ( const Exception &src ) throw () {
113 const char *Exception::what() const throw () {
114 return _what.c_str() ;
117 Exception::~Exception() throw () {}
123 Implementation of a number of Exceptions used by FileCollection and its
128 Zipios++ - a small C++ library that provides easy access to .zip files.
129 Copyright (C) 2000 Thomas Søndergaard
131 This library is free software; you can redistribute it and/or
132 modify it under the terms of the GNU Lesser General Public
133 License as published by the Free Software Foundation; either
134 version 2 of the License, or (at your option) any later version.
136 This library is distributed in the hope that it will be useful,
137 but WITHOUT ANY WARRANTY; without even the implied warranty of
138 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
139 Lesser General Public License for more details.
141 You should have received a copy of the GNU Lesser General Public
142 License along with this library; if not, write to the Free Software
143 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA