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