Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
cameraException.hpp
00001 /* $Id$ */
00002 
00003 #ifndef CAMERA_CAMERA_EXCEPTION_HPP
00004 #define CAMERA_CAMERA_EXCEPTION_HPP
00005 
00006 #include "kernel/jafarException.hpp"
00007 
00008 namespace jafar {
00009 
00010   namespace camera {
00011 
00017     class CameraException : public ::jafar::kernel::Exception {
00018 
00019     public:
00020 
00024       enum ExceptionId {
00025         //        MY_ERROR /**< my error */
00026         BAD_PARAMS_NUMBER, 
00027         UNKNOWN_CAMERA_TYPE 
00028       };
00029 
00039       CameraException(ExceptionId id_, 
00040                             const std::string& message_, 
00041                             const std::string& file_, int line_) throw();
00042 
00043       virtual ~CameraException() throw();
00044 
00045       ExceptionId getExceptionId() const throw(); 
00046 
00047     protected:
00048 
00049       ExceptionId id;
00050 
00051       static std::string exceptionIdToString(ExceptionId id_) throw();
00052       
00053     }; // class CameraException
00054 
00055   } // namespace camera
00056 } // namespace jafar
00057 
00058 #endif // CAMERA_CAMERA_EXCEPTION_HPP
00059 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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