00001 #ifndef CRLCERROR_HH 00002 #define CRLCERROR_HH 00003 00004 #include <iostream> 00005 #include <exception> 00009 class CRlcException 00010 { 00011 public: 00016 CRlcException(const std::string &e):m_message(e){}; 00021 std::string what(){return m_message;}; 00022 protected: 00024 std::string m_message; 00025 }; 00029 class CRlcConversionError:public CRlcException 00030 { 00031 public : 00036 CRlcConversionError(const std::string &e="ConversionError"):CRlcException(e) {}; 00037 }; 00038 00039 #endif