00001
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
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 };
00054
00055 }
00056 }
00057
00058 #endif // CAMERA_CAMERA_EXCEPTION_HPP
00059