2#include "zipios++/zipios-config.h"
4#include "zipios++/meta-iostreams.h"
13IOException::IOException() throw ()
14 : _what(
"I/O exception" ) {}
16IOException::IOException(
const string &msg )
throw ()
19IOException::IOException(
const IOException &src )
throw ()
20 : std::exception(), _what( src._what ) {}
29const char *IOException::what()
const throw () {
30 return _what.c_str() ;
33IOException::~IOException() throw () {}
40FCollException::FCollException() throw ()
41 : _what(
"FileCollection exception" ) {}
43FCollException::FCollException(
const string &msg )
throw ()
46FCollException::FCollException(
const FCollException &src )
throw ()
47 : std::exception(),_what( src._what ) {}
56const char *FCollException::what()
const throw () {
57 return _what.c_str() ;
60FCollException::~FCollException() throw () {}
67InvalidStateException::InvalidStateException() throw ()
68 : _what(
"InvalidState exception" ) {}
70InvalidStateException::InvalidStateException(
const string &msg )
throw ()
73InvalidStateException::
75 : std::exception(), _what( src._what ) {}
85const char *InvalidStateException::what()
const throw () {
86 return _what.c_str() ;
89InvalidStateException::~InvalidStateException() throw () {}
95Exception::Exception() throw ()
96 : _what(
"Exception" ) {}
98Exception::Exception(
const string &msg )
throw ()
102Exception(
const Exception &src )
throw ()
103 : std::exception(),_what( src._what ) {}
107operator= (
const Exception &src )
throw () {
113const char *Exception::what()
const throw () {
114 return _what.c_str() ;
117Exception::~Exception() throw () {}
An FCollException is used to signal a problem with a FileCollection.
An IOException is used to signal an I/O error.
An object member function may throw this exception, if the operation it normally performs is inapprop...
Header file that defines a number of exceptions used by FileCollection and its subclasses.