Commit ff0d6683 by s_guodong

update

parent a354cd10
......@@ -55,7 +55,7 @@ public class ResponseSet<T> {
public ResponseSet(String errCode, String errMsg) {
if (CODE_SUCCESS.equals(errCode)) {
this.retcod = CODE_SUCCESS;
this.retmsg = CODE_SUCCESS;
this.retmsg = errMsg;
} else {
this.retcod = CODE_FAILURE;
this.retmsg = errMsg;
......
......@@ -240,8 +240,9 @@ public abstract class AbstractRouteService<V extends BaseVO> {
//return new ResponseSet<V>(ctx.getErrorNo(), ctx.getErrorMessage(), ctx.getFieldErrors());
}
} catch (Exception e) {
throw new RuleExecuteException(e.getMessage(), e);
// return new ResponseSet<V>()
// throw new RuleExecuteException(e.getMessage(), e);
IContext ctx = MdaEnv.getContext();
return new ResponseSet<V>(ctx.getErrorNo(), ctx.getErrorMessage());
} finally {
DCR.emptyDefaultQueue();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment