Exception.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. struct MessageNoFeildIsSetException: virtual Exception
  18. {
  19. };
  20. typedef boost::error_info<struct TagMessageNoFeildIsSetErrNO, int> MessageNoFeildIsSetErrNO;
  21. typedef boost::error_info<struct TagMessageNoFeildIsSetErrStr, std::string> MessageNoFeildIsSetErrStr;
  22. struct MessageHasNoSuchFeildException: virtual Exception
  23. {
  24. };
  25. typedef boost::error_info<struct TagMessageHasNoSuchFeildErrNO, int> MessageHasNoSuchFeildErrNO;
  26. typedef boost::error_info<struct TagMessageHasNoSuchFeildErrStr, std::string> MessageHasNoSuchFeildErrStr;
  27. }
  28. #endif // ORM_EXCEPTION_H