From 5c14a7ce0b6bd393ea2bbf33e2411604b696c16f Mon Sep 17 00:00:00 2001 From: 2210045 <2210045@P9801Y.kjbank.dom> Date: Thu, 26 Feb 2026 10:57:16 +0900 Subject: [PATCH] =?UTF-8?q?errorcode=20static=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/eactive/eai/agent/command/Command.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/com/eactive/eai/agent/command/Command.java b/src/com/eactive/eai/agent/command/Command.java index 261ddd0..e9e0301 100644 --- a/src/com/eactive/eai/agent/command/Command.java +++ b/src/com/eactive/eai/agent/command/Command.java @@ -27,7 +27,7 @@ public abstract class Command implements Serializable { private HashMap errorCode ; static { - HashMap errorCode = new HashMap(); + errorCode = new HashMap(); errorCode.put("RECEAIMCM001", "Command 이름[{1}] 유효하지 않은 파라메터 타입 - {2}"); errorCode.put("RECEAIMCM002", "Command 이름[{1}] execute 메소드 실행중 에러가 발생 - {2}"); } @@ -94,10 +94,9 @@ public abstract class Command implements Serializable { else{ msgArgs[1] = cause.getMessage(); } - if(this.errorCode != null) - return makeMessage((String)errorCode.get(rspErrorCode),msgArgs) ; - else - return "error"; + String msg = makeMessage((String)errorCode.get(rspErrorCode),msgArgs) ; + + return msg; } protected static String makeMessage(String msg, String[] args) {