Jafar
|
00001 /* $Id$ */ 00002 00003 #ifndef PREMODELER_PREMODELER_EXCEPTION_HPP 00004 #define PREMODELER_PREMODELER_EXCEPTION_HPP 00005 00006 #include "kernel/jafarException.hpp" 00007 00008 namespace jafar { 00009 00010 namespace premodeler { 00011 00017 class PremodelerException : public ::jafar::kernel::Exception { 00018 00019 public: 00020 00024 enum ExceptionId { 00025 NOT_INITIALISED, 00026 PARAMETERS_ARE_NOT_SET, 00027 WRONG_IMAGE_ID, 00028 OBJECT_SERIE_NOT_CREATED, 00029 BAD_DETECTOR_TYPE, 00030 ID_NOT_FOUND, 00031 SENSOR_NAME_NOT_SET 00032 }; 00033 00043 PremodelerException(ExceptionId id_, 00044 const std::string& message_, 00045 const std::string& file_, int line_) throw(); 00046 00047 virtual ~PremodelerException() throw(); 00048 00049 ExceptionId getExceptionId() const throw(); 00050 00051 protected: 00052 00053 ExceptionId id; 00054 00055 static std::string exceptionIdToString(ExceptionId id_) throw(); 00056 00057 }; // class PremodelerException 00058 00059 } // namespace premodeler 00060 } // namespace jafar 00061 00062 #endif // PREMODELER_PREMODELER_EXCEPTION_HPP 00063
Generated on Wed Oct 15 2014 00:37:25 for Jafar by doxygen 1.7.6.1 |