Esempio n. 1
0
def processErrorMsgRet(opstype, cmd, msg):
    ret_msg = MsgDef.ErrorMsgRet()
    ret_msg.errType = opstype  #错误信息所处位置opstype
    ret_msg.cmd = cmd  #错误信息所处位置cmd
    ret_msg.errMsg = msg  #错误信息
    return ret_msg
Esempio n. 2
0
def buildErrMsg(cmd, errMsg):
    return MsgDef.ErrorMsgRet(0, cmd, errMsg)#'cmd=%d,errMsg=%s'%(cmd, errMsg)