PolyBoRi
|
00001 // -*- c++ -*- 00002 //***************************************************************************** 00014 //***************************************************************************** 00015 00016 // load PolyBoRi settings 00017 #include "pbori_defs.h" 00018 #include <exception> 00019 00020 #ifndef PBoRiError_h_ 00021 #define PBoRiError_h_ 00022 00023 00024 BEGIN_NAMESPACE_PBORI 00025 00032 class PBoRiError: 00033 public std::exception, public CTypes { 00034 00035 public: 00037 typedef CTypes::errornum_type errornum_type; 00038 00040 typedef CTypes::errortext_type errortext_type; 00041 00043 typedef PBoRiError self; 00044 00046 PBoRiError(errornum_type err = CTypes::alright); 00047 00049 PBoRiError(const self&); 00050 00052 ~PBoRiError() throw(); 00053 00055 errornum_type code() const; 00056 00058 errortext_type text() const; 00059 00061 const char* what() const throw() { return text(); } 00062 00063 protected: 00064 errornum_type error; 00065 }; 00066 00067 END_NAMESPACE_PBORI 00068 00069 #endif // of #ifndef PBoRiError_h_