#ifndef _EXCEPT_H_ #define _EXCEPT_H_ #include using namespace std; class IteratorException { public: IteratorException( const string & msg = "" ) : mesg( msg ) { } string getMessage( ) const { return mesg; } private: string mesg; }; class IteratorOutOfBoundsException : public IteratorException { public: IteratorOutOfBoundsException( const string & msg = "" ) : IteratorException( msg ) { } }; class IteratorUninitializedException : public IteratorException { public: IteratorUninitializedException( const string & msg = "" ) : IteratorException( msg ) { } }; class IteratorMismatchException : public IteratorException { public: IteratorMismatchException( const string & msg = "" ) : IteratorException( msg ) { } }; #endif