2014-11-19 00:06:40 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
#include "acl_cpp/acl_cpp_define.hpp"
|
|
|
|
|
|
|
|
|
|
#define HS_ERR_INVALID_REPLY -7 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
|
|
|
|
|
#define HS_ERR_EMPTY -6 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>
|
|
|
|
|
#define HS_ERR_PARAMS -5 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
#define HS_ERR_NOT_OPEN -4 // <20><>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>
|
|
|
|
|
#define HS_ERR_READ -3 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
|
|
|
|
|
#define HS_ERR_WRITE -2 // д<><D0B4><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
|
|
|
|
|
#define HS_ERR_CONN -1 // <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
|
|
|
|
|
#define HS_ERR_OK 0 // <20><>ȷ
|
|
|
|
|
|
|
|
|
|
namespace acl {
|
|
|
|
|
|
|
|
|
|
class ACL_CPP_API hserror
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
hserror();
|
|
|
|
|
~hserror();
|
|
|
|
|
|
|
|
|
|
static const char* get_serror(int errnum);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace acl
|