00001
00002 #include "zipios++/zipios-config.h"
00003
00004 #include "zipios++/meta-iostreams.h"
00005
00006 #include "zipios++/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 : _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 : _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 : _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 : _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 }
00121
00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144