mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
feature(util) rm tryCatch{Debug, Call}
This commit is contained in:
parent
7bd426dace
commit
47691d4002
1 changed files with 0 additions and 32 deletions
32
lib/util.js
32
lib/util.js
|
|
@ -686,21 +686,6 @@
|
|||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
*
|
||||
* @param pTryFunc
|
||||
*/
|
||||
this.tryCatchDebug = function(pTryFunc) {
|
||||
var ret = Util.tryCatch(pTryFunc);
|
||||
|
||||
if (ret)
|
||||
Util.debug();
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
|
|
@ -715,23 +700,6 @@
|
|||
return Util.logError(ret);
|
||||
};
|
||||
|
||||
/**
|
||||
* function execute param function in
|
||||
* try...catch block and log result
|
||||
*
|
||||
* @param pCallBack
|
||||
*/
|
||||
this.tryCatchCall = function(pTryFunc, pCallBack) {
|
||||
var ret;
|
||||
|
||||
ret = Util.tryCatch(pTryFunc);
|
||||
|
||||
if (ret)
|
||||
Util.exec(pCallBack, ret);
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
* function do save exec of function
|
||||
* @param pCallBack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue