MCI 성공 처리

This commit is contained in:
daekuk1
2026-02-03 17:55:01 +09:00
parent 837904d4e5
commit 98b236f9f5
2 changed files with 19 additions and 2 deletions
@@ -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 ) {
@@ -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);
}
}