Exception.h 373 B

123456789101112131415161718
  1. #ifndef BASE_EXCEPTION_H
  2. #define BASE_EXCEPTION_H
  3. #include <string>
  4. #include <exception>
  5. #include <boost/exception/all.hpp>
  6. namespace Egametang {
  7. struct Exception: virtual std::exception, virtual boost::exception
  8. {
  9. };
  10. typedef boost::error_info<struct TagErrNO, int> ErrNO;
  11. typedef boost::error_info<struct TagErrStr, std::string> ErrInfo;
  12. }
  13. #endif // BASE_EXCEPTION_H