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

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