Exception.h 625 B

12345678910111213141516171819202122232425
  1. // Copyright: All Rights Reserved
  2. // Author: egametang@gmail.com (tanghai)
  3. #ifndef ORM_EXCEPTION_H
  4. #define ORM_EXCEPTION_H
  5. #include "Base/Exception.h"
  6. namespace Egametang {
  7. struct ConnectionException: virtual Exception
  8. {
  9. };
  10. typedef boost::error_info<struct TagConnectionErrNO, int> ConnectionErrNO;
  11. typedef boost::error_info<struct TagConnectionErrStr, std::string> ConnectionErrStr;
  12. struct SqlNoDataException: virtual Exception
  13. {
  14. };
  15. typedef boost::error_info<struct TagSqlNoDataErrNO, int> SqlNoDataErrNO;
  16. typedef boost::error_info<struct TagSqlNoDataErrStr, std::string> SqlNoDataErrStr;
  17. }
  18. #endif // ORM_EXCEPTION_H