표준전문 오류 처리 관련 수정
This commit is contained in:
@@ -185,6 +185,10 @@ public class EAIMessage implements EAIMessageKeys, Serializable, Comparable<EAIM
|
||||
}
|
||||
|
||||
public void setRspErrCd(String rspErrCd) {
|
||||
setRspErrCd(rspErrCd, true);
|
||||
}
|
||||
|
||||
public void setRspErrCd(String rspErrCd, boolean isSetStandardMessageError) {
|
||||
this.rspErrCd = rspErrCd;
|
||||
// --------------------------------------------
|
||||
// 에러메시지는 뒤의 9자리를 짤라서 설정한다.
|
||||
@@ -195,18 +199,15 @@ public class EAIMessage implements EAIMessageKeys, Serializable, Comparable<EAIM
|
||||
// 20080919 - 업무에러일 경우에도 메시지에 설정하도록 수정
|
||||
// --------------------------------------------
|
||||
|
||||
if (this.mapper != null && this.standardMessage != null && rspErrCd != null && rspErrCd.length() == 12) {
|
||||
if (isSetStandardMessageError && this.mapper != null && this.standardMessage != null && rspErrCd != null && rspErrCd.length() == 12) {
|
||||
if (rspErrCd.startsWith("RE") || rspErrCd.startsWith("RF") || rspErrCd.equals(BWK_FAILMSG_CODE)) {
|
||||
|
||||
// migration ExtMessage to StandardMessage
|
||||
//getMapper().setErrorCode(standardMessage, rspErrCd);
|
||||
StandardMessageManager standardManager = StandardMessageManager.getInstance();
|
||||
standardManager.getMessageCoordinator().coordinateSetStandardMessageError(standardMessage, getMapper(), rspErrCd, null);
|
||||
getMapper().setResponseType(standardMessage, STDMessageKeys.RESPONSE_TYPE_CODE_E);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getRspErrMsg() {
|
||||
|
||||
Reference in New Issue
Block a user