00001 // -*- c++ -*- 00002 //***************************************************************************** 00028 //***************************************************************************** 00029 00030 // load PolyBoRi settings 00031 #include "pbori_defs.h" 00032 00033 // Get runtime-definable error type 00034 #include "PBoRiError.h" 00035 00036 #ifndef PBoRiGenericError_h_ 00037 #define PBoRiGenericError_h_ 00038 00039 00040 BEGIN_NAMESPACE_PBORI 00041 00049 template <CTypes::errornum_type ErrorCode> 00050 class PBoRiGenericError: 00051 public PBoRiError { 00052 public: 00054 typedef CTypes::errornum_type errornum_type; 00055 00057 typedef CTypes::errortext_type errortext_type; 00058 00059 enum { error_code = ErrorCode }; 00060 00062 PBoRiGenericError(): PBoRiError(error_code) {} 00063 00064 }; 00065 00066 END_NAMESPACE_PBORI 00067 00068 #endif // of #ifndef PBoRiGenericError_h_