From 98b236f9f51c590f331caf7252663cf512a2309a Mon Sep 17 00:00:00 2001 From: daekuk1 Date: Tue, 3 Feb 2026 17:55:01 +0900 Subject: [PATCH] =?UTF-8?q?MCI=20=EC=84=B1=EA=B3=B5=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/rule/layoutsync/LayoutSyncController.java | 10 ++++++++-- .../manage/rule/layoutsync/UseSystemException.java | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/UseSystemException.java diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/LayoutSyncController.java b/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/LayoutSyncController.java index dfbf837..15604d6 100644 --- a/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/LayoutSyncController.java +++ b/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/LayoutSyncController.java @@ -529,7 +529,7 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements if (!"EAI".equalsIgnoreCase(useSystem) && !"FEP".equalsIgnoreCase(useSystem)) { String errorMessage = "사용 시스템(" + useSystem + ")인 전문레이아웃은 EAI, FEP로 배포 안됨."; logger.error(errorMessage); - throw new Exception(errorMessage); + throw new UseSystemException(errorMessage); } if( "ASCII".equals(format.getAttributeValue("msgType")) ) { @@ -604,9 +604,15 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements logger.error("",e.getStackTrace()[0]); try { if( results != null ) { - results.getChild("Result").setText("False"); + if (e instanceof UseSystemException) { + results.getChild("Result").setText("True"); + } else { + results.getChild("Result").setText("False"); + } results.getChild("ResultMessage").setText( e.getMessage() ); + + resultS = StringUtils.toXMLString(rDoc, true); } if( param.get("logPrcssSeqno") == null ) { diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/UseSystemException.java b/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/UseSystemException.java new file mode 100644 index 0000000..6053d35 --- /dev/null +++ b/src/main/java/com/eactive/eai/rms/onl/manage/rule/layoutsync/UseSystemException.java @@ -0,0 +1,11 @@ +package com.eactive.eai.rms.onl.manage.rule.layoutsync; + +import com.eactive.eai.rms.onl.common.exception.EMSRuntimeException; + +public class UseSystemException extends EMSRuntimeException { + + public UseSystemException(String message) { + super(message); + } + +}