RVCEventCode.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __RVC_EVENT_CODE_H
  2. #define __RVC_EVENT_CODE_H
  3. #include "SimpleString.h"
  4. inline CSimpleStringA DWORD2Hex(DWORD cur)
  5. {
  6. return CSimpleStringA::Format("%X", cur);
  7. }
  8. #define ERR_ENTITY_EXCEPTION "QLR040200003" //实体crash
  9. #define ERR_SPSHELL_EXCETION "QLR040200002" //框架crash
  10. #define ERR_ENTITY_ASSERT 0xFFF00003 //实体Assert
  11. #define ERR_SPSHELL_COPY_CEN 0xFFF00101 //拷贝集中配置
  12. #define RTAERR_SPSHELL_REPEATPROCESS "RTA0001" //重复进程
  13. #define RTAERR_SPSHELL_NOPRIVILEGE "RTA0002" //无权限
  14. #define RTAERR_SPSHELL_APPINITERR "RTA0003" //app_init出现异常
  15. #define RTAERR_ENTITY_EXCEPTION "RTA0011" //实体crash
  16. #define RTAERR_SPSHELL_EXCEPTION "RTA0012" //框架crash
  17. #define RTAERR_SPHOST_IOM_FAILED "RTA0021" //iom create failed
  18. #define VTM_LAUNCH_RESERVERD_START "RTA0030"
  19. #define VTM_LAUNCH_RESERVERD_END "RTA003Z"
  20. //for public method of read/write(get/set)
  21. #define RTAERR_CONFIG_OPEN_FAILED "RTA0041" //->OpenConfig failed
  22. #define RTAERR_CONFIG_READ_FAILED "RTA0042" //->ReadConfigXXX failed
  23. #define RTAERR_CONFIG_WRITE_FAILED "RTA0043" //->WriteConfigXXX failed
  24. #define RTAERR_SYSVAR_REGIST_FAILED "RTA0044" //->RegistSysVarEvent failed
  25. #define RTAERR_SYSVAR_UNREGIST_FAILED "RTA0045" //->UnregistSysVarEvent failed
  26. #define RTAERR_SYSVAR_GET_FAILED "RTA0046" //->GetSysVar failed
  27. #define RTAERR_SYSVAR_SET_FAILED "RTA0047" //->SetSysVar failed
  28. #define RTAERR_GETPATH_FAILED "RTA0048" //->GetPath failed
  29. #endif