Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Exception.hpp
  3.  *
  4.  *  Created on: Apr 26, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef EXCEPTION_HPP_
  9. #define EXCEPTION_HPP_
  10.  
  11. #include <string>
  12.  
  13. namespace atom {
  14.  
  15. using namespace std;
  16.  
  17. class Exception
  18. {
  19. public:
  20.     Exception(string description)
  21.     {
  22.         myDescription = description;
  23.     }
  24.  
  25.     string getDescription()
  26.     {
  27.         return myDescription;
  28.     }
  29.  
  30. private:
  31.     string myDescription;
  32. };
  33.  
  34. }
  35.  
  36. #endif /* _EXCEPTION_HPP */
  37.  
  38.