fix: target validation 오류 발생 시 item path 정보 출력 안되는 문제 처리

This commit is contained in:
curry772
2026-08-27 09:18:49 +09:00
parent 09ac7f4ca5
commit b1e7883d41
@@ -604,9 +604,10 @@ public class JSONMessage extends Message {
int length = item.getLength();
int pointLength = item.getDecimalPointLength();
if (SystemKeys.isValidationEnabled() && !Converter.isValid(data, length, pointLength)) {
throw new Exception(String.format("Invalid decimal point format Error value=%s,length=%d,pointLength=%d"
, data,length,pointLength)
);
throw new InvalidAccessException(
String.format("Invalid decimal point format Error value=%s,length=%d,pointLength=%d", data, length,
pointLength),
item.getItemPath());
}
// 숫자형 여부 확인 - 파싱 불가 시 NumberFormatException
new BigDecimal(data.replaceAll(" ", ""));