00001
00002
00003
00004
00005 #ifndef ATLAS_EXCEPTION_H
00006 #define ATLAS_EXCEPTION_H
00007
00008 #include <string>
00009 #include <exception>
00010
00011 namespace Atlas {
00012
00015 class Exception : public std::exception
00016 {
00017 protected:
00018 std::string m_description;
00019
00020 public:
00021 Exception(const std::string & d = "UNKNOWN ERROR") : m_description(d) { }
00022 virtual ~Exception() throw ();
00023 const std::string & getDescription() const {
00024 return m_description;
00025 }
00026 virtual const char * what() const throw();
00027 };
00028
00029 }
00030
00031 #endif // ATLAS_EXCEPTION_H