Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
datareaderException.hpp
00001 /* $Id$ */
00002 
00003 #ifndef DATAREADER_DATAREADER_EXCEPTION_HPP
00004 #define DATAREADER_DATAREADER_EXCEPTION_HPP
00005 
00006 #include "kernel/jafarException.hpp"
00007 
00008 namespace jafar {
00009 
00010   namespace datareader {
00011 
00017     class DatareaderException : public ::jafar::kernel::Exception {
00018 
00019     public:
00020 
00024       enum ExceptionId {
00025         NOT_A_STEREO_BENCH, 
00026         NOT_A_MONO_BENCH, 
00027         NOT_A_PANO_BENCH, 
00028         INVALID_BEGIN, 
00029         INVALID_END, 
00030         INVALID_OFFSET, 
00031         WRONG_INDEXES_ORDER 
00032       };
00033 
00043       DatareaderException(ExceptionId id_, 
00044                           const std::string& message_, 
00045                           const std::string& file_, int line_) throw();
00046       
00047       virtual ~DatareaderException() 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 DatareaderException
00058     
00059   } // namespace datareader
00060 } // namespace jafar
00061 
00062 #endif // DATAREADER_DATAREADER_EXCEPTION_HPP
00063 
 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