lengbumo's recent timeline updates
lengbumo

lengbumo

V2EX member #426179, joined on 2019-07-02 11:46:12 +08:00
lengbumo's recent replies
抽奖:[398]
Jul 25, 2019
Replied to a topic by novaa 问与答 产品经理门槛都这么低了么?
根本就没有产品经理,或者说人人都是产品经理(狗头)
目前用的是在 Service 层抛出自定义异常,然后在 controller 层捕获异常
比如:
if (null == user) {
throw new BizException("E00001", "用户不能为空");
}
然后 controller 捕获异常
catch (BizException e) {
return AppRespUtil.fail(e.getErrCode(), e.getMessage());
}
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5309 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 08:56 · PVG 16:56 · LAX 01:56 · JFK 04:56
♥ Do have faith in what you're doing.