2 #include "zipios++/zipios-config.h" 4 #include "zipios++/meta-iostreams.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 () {}
Header file that defines a number of exceptions used by FileCollection and its subclasses.