00001 // -*- c++ -*- 00002 //***************************************************************************** 00031 //***************************************************************************** 00032 00033 // load PolyBoRi settings 00034 # include "pbori_defs.h" 00035 00036 00037 #ifndef PBoRiError_h_ 00038 #define PBoRiError_h_ 00039 00040 00041 BEGIN_NAMESPACE_PBORI 00042 00049 class PBoRiError { 00050 00051 public: 00053 typedef CTypes::errornum_type errornum_type; 00054 00056 typedef CTypes::errortext_type errortext_type; 00057 00059 typedef PBoRiError self; 00060 00062 PBoRiError(errornum_type err = CTypes::alright); 00063 00065 PBoRiError(const self&); 00066 00068 ~PBoRiError(); 00069 00071 errornum_type code() const; 00072 00074 errortext_type text() const; 00075 00076 protected: 00077 errornum_type error; 00078 }; 00079 00080 END_NAMESPACE_PBORI 00081 00082 #endif // of #ifndef PBoRiError_h_