00001 #ifndef RECEIVED_EXCEPTION_H 00002 #define RECEIVED_EXCEPTION_H 00003 00004 #include <stdexcept> 00005 00006 namespace std 00007 { 00008 class received_exception:public runtime_error 00009 { 00010 public: 00011 received_exception(const string& msg="Unknown exception in Received: line analysis"):runtime_error(msg) 00012 { 00013 } 00014 }; 00015 00016 class qmail_exception:public received_exception 00017 { 00018 public: 00019 qmail_exception():received_exception("Useless qmail received line") 00020 {} 00021 }; 00022 00023 class nomore_exception: public received_exception 00024 { 00025 public: 00026 nomore_exception():received_exception("No more Received: lines"){} 00027 }; 00028 } 00029 00030 #endif //RECEIVED_EXCEPTION_H