src/exceptions.h

00001 #ifndef __EXCEPTIONS_H__
00002 #define __EXCEPTIONS_H__
00003 
00004 #include <string>
00005 
00006 namespace freedaisy {
00007   namespace Exceptions {
00008     class BaseException {
00009     public:
00010       BaseException(std::string msg);
00011       BaseException();
00012       std::string getMessage();
00013     protected:
00014       std::string message;
00015     };
00016     
00018     class XMLException : public BaseException {
00019     public:
00020       XMLException(std::string msg) : BaseException(msg) {}
00021     };
00022 
00024     class PageNotFound : public BaseException {
00025     public:
00026       PageNotFound(std::string page): BaseException(page) {}
00027     };
00028   }
00029 }
00030 
00031 #endif

Generated on Sun Jun 25 20:48:22 2006 for libdaisy by  doxygen 1.4.6