PolyBoRi
|
00001 // -*- c++ -*- 00002 //***************************************************************************** 00014 //***************************************************************************** 00015 00016 // load PolyBoRi settings 00017 #include "pbori_defs.h" 00018 00019 // Get runtime-definable error type 00020 #include "PBoRiError.h" 00021 00022 #ifndef PBoRiGenericError_h_ 00023 #define PBoRiGenericError_h_ 00024 00025 00026 BEGIN_NAMESPACE_PBORI 00027 00035 template <CTypes::errornum_type ErrorCode> 00036 class PBoRiGenericError: 00037 public PBoRiError { 00038 public: 00040 typedef CTypes::errornum_type errornum_type; 00041 00043 typedef CTypes::errortext_type errortext_type; 00044 00045 enum { error_code = ErrorCode }; 00046 00048 PBoRiGenericError(): PBoRiError(error_code) {} 00049 00050 }; 00051 00052 END_NAMESPACE_PBORI 00053 00054 #endif // of #ifndef PBoRiGenericError_h_