Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
sasException.hpp
00001 /* $Id$ */
00002 
00003 #ifndef SAS_SAS_EXCEPTION_HPP
00004 #define SAS_SAS_EXCEPTION_HPP
00005 
00006 #include "kernel/jafarException.hpp"
00007 
00008 namespace jafar {
00009 
00010   namespace sas {
00011 
00017     class SasException : public jafar::kernel::Exception {
00018 
00019     public:
00020 
00024       enum ExceptionId {
00025         BAD_COLOR_TYPE,
00026   CHANGE_FROM_INIT,
00027   FATAL_ERROR
00028       };
00029 
00039       SasException(ExceptionId id_, 
00040                             const std::string& message_, 
00041                             const std::string& file_, int line_) throw();
00042 
00043       virtual ~SasException() 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     }; // class SasException
00054 
00055   } // namespace sas
00056 } // namespace jafar
00057 
00058 #endif // SAS_SAS_EXCEPTION_HPP
00059 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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