fix: target validation 오류 발생 시 item path 정보 출력 안되는 문제 처리
This commit is contained in:
@@ -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(" ", ""));
|
||||
|
||||
Reference in New Issue
Block a user