From 076912941765f1b29aa498c66c829e8bca88b2bc Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Thu, 29 Aug 2024 13:19:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20kt=20BC/GIBIS=20=EB=AA=A8=EB=B0=94?= =?UTF-8?q?=EC=9D=BC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/kr/xit/biz/mbl/service/MobilePageService.java | 5 ++--- .../java/kr/xit/biz/mbl/web/MobilePageController.java | 8 +++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/biz/mbl/service/MobilePageService.java b/mens-api/src/main/java/kr/xit/biz/mbl/service/MobilePageService.java index 24e6d3a..05a0807 100644 --- a/mens-api/src/main/java/kr/xit/biz/mbl/service/MobilePageService.java +++ b/mens-api/src/main/java/kr/xit/biz/mbl/service/MobilePageService.java @@ -85,7 +85,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer .build() ); if(!res.isSuccess()){ - throw BizRuntimeException.create(res.getMessage()); + throw BizRuntimeException.create(res.getCode(), res.getMessage()); } return mobilePageManage.getMobilePageCn(); } @@ -125,9 +125,8 @@ public class MobilePageService extends AbstractService implements IMobilePageSer .build() ); if(!res.isSuccess()){ - throw BizRuntimeException.create(res.getMessage()); + throw BizRuntimeException.create(res.getCode(), res.getMessage()); } - return mobilePageManage.getMobilePageCn(); } diff --git a/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java b/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java index 0dc9cc7..157b313 100644 --- a/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java +++ b/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java @@ -73,6 +73,9 @@ public class MobilePageController { }else{ mav.addObject("details", service.findKkotalkReadyAndMblPage(reqDTO));; } + } catch (BizRuntimeException e){ + mav.addObject("errCode", e.getErrorCode()); + mav.addObject("errMsg", e.getMessage()); }catch (Exception e){ mav.addObject("errCode", e.getMessage()); mav.addObject("errMsg", e.getMessage()); @@ -150,7 +153,10 @@ public class MobilePageController { } mav.addObject("details", mblCnts); - }catch (Exception e){ + } catch (BizRuntimeException e){ + mav.addObject("errCode", e.getErrorCode()); + mav.addObject("errMsg", e.getMessage()); + } catch (Exception e){ mav.addObject("errCode", e.getMessage()); mav.addObject("errMsg", e.getMessage()); }