mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added description
This commit is contained in:
parent
4d1b8d31cf
commit
205efa4f4f
3 changed files with 56 additions and 25 deletions
26
lib/util.js
26
lib/util.js
|
|
@ -303,10 +303,10 @@ var Util, exports;
|
|||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
*
|
||||
* @param pCallBack
|
||||
* @param pTryFunc
|
||||
*/
|
||||
Util.tryCatchDebug = function(pCallBack){
|
||||
var lRet = Util.tryCatch(pCallBack);
|
||||
Util.tryCatchDebug = function(pTryFunc){
|
||||
var lRet = Util.tryCatch(pTryFunc);
|
||||
|
||||
if(lRet)
|
||||
Util.debug();
|
||||
|
|
@ -318,16 +318,30 @@ var Util, exports;
|
|||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
*
|
||||
* @param pCallBack
|
||||
* @param pTryFunc
|
||||
*/
|
||||
Util.tryCatchLog = function(pCallBack){
|
||||
Util.tryCatchLog = function(pTryFunc){
|
||||
var lRet;
|
||||
|
||||
lRet = Util.tryCatch(pCallBack);
|
||||
lRet = Util.tryCatch(pTryFunc);
|
||||
|
||||
return Util.log(lRet);
|
||||
};
|
||||
|
||||
/**
|
||||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
*
|
||||
* @param pCallBack
|
||||
*/
|
||||
Util.tryCatchCall = function(pTryFunc, pCallBack){
|
||||
var lRet;
|
||||
|
||||
lRet = Util.tryCatch(pTryFunc);
|
||||
|
||||
return Util.exec(pCallBack, lRet);
|
||||
};
|
||||
|
||||
/**
|
||||
* function do save exec of function
|
||||
* @param pCallBack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue