TMYUtils
- class tlkcore.TMYUtils.RetType(ret=RetCode.OK, msg=None, data=None)
Bases:
_RetTypeBaseA general returns class for returning error code, sometimes with error msg and data.
- Parameters:
- RetData = None
Return data if available
- toJson() str
Convert current RetType to json format with string
- Returns:
Description for this RetType with json format likes
{'RetCode':0, 'RetData':None, 'RetMsg':None}- Return type:
str
- reload(value)
Reload & update values from json string to current RetType