00001 00002 #ifndef EXCEPTION_H 00003 #define EXCEPTION_H 00004 00005 #include <exception> 00006 #include <stdexcept> 00007 00008 namespace mime 00009 { 00010 00011 class error : public std::logic_error { 00012 public: 00013 error(const std::string& msg) : std::logic_error(msg) {} 00014 }; 00015 00016 class end_of_header : public std::logic_error { 00017 public: 00018 end_of_header(const std::string& msg) : std::logic_error(msg) {} 00019 }; 00020 00021 } 00022 00023 #endif /* _GLIBCXX_STDEXCEPT */