Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
slamException.hpp
00001 /* $Id$ */
00002 
00003 #ifndef SLAM_SLAM_EXCEPTION_HPP
00004 #define SLAM_SLAM_EXCEPTION_HPP
00005 
00006 #include "kernel/jafarException.hpp"
00007 
00008 namespace jafar {
00009 
00010   namespace slam {
00011 
00017     class SlamException : public jafar::kernel::Exception {
00018 
00019     public:
00020 
00024       enum ExceptionId {
00025         UNKNOWN_FEATURE,          
00026   UNKNOWN_POSE_COPY,        
00027   LOCAL_MAP_FULL,           
00028   UNKNOWN_SENSOR,           
00029   INVALID_INITSTATE_UPDATE  
00030       };
00031 
00041       SlamException(ExceptionId id_, 
00042         const std::string& message_, 
00043         const std::string& file_, int line_) throw();
00044 
00045       virtual ~SlamException() throw();
00046 
00047       ExceptionId getExceptionId() const throw(); 
00048 
00049     protected:
00050 
00051       ExceptionId id;
00052 
00053       static std::string exceptionIdToString(ExceptionId id_) throw();
00054       
00055     }; // class SlamException
00056 
00057   } // namespace slam
00058 } // namespace jafar
00059 
00060 #endif // SLAM_SLAM_EXCEPTION_HPP
00061 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:28 for Jafar by doxygen 1.7.6.1
LAAS-CNRS