00001
00002
00003 #ifndef RTMAPS_RTMAPS_EXCEPTION_HPP
00004 #define RTMAPS_RTMAPS_EXCEPTION_HPP
00005
00006 #include "kernel/jafarException.hpp"
00007
00008 namespace jafar {
00009
00010 namespace rtmaps {
00011
00017 class RtmapsException : public ::jafar::kernel::Exception {
00018
00019 public:
00020
00024 enum ExceptionId {
00025 INVALID_CONFIG_DATA,
00026 UNKNOWN_CHANNELS_SEQUENCES,
00027 UNSUPPORTED_CODING_FORMAT
00028 };
00029
00039 RtmapsException(ExceptionId id_,
00040 const std::string& message_,
00041 const std::string& file_, int line_) throw();
00042
00043 virtual ~RtmapsException() 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 // RTMAPS_RTMAPS_EXCEPTION_HPP
00059