If you want to avoid the exception, then the data must be truncated to fit the field and you must code additional logic to do the truncation.
如果您希望避免该异常,则必须将数据截断以适应该字段,并且必须编写附加的逻辑代码来处理截断。
2
The new 8-byte DIF field includes a cyclical redundancy code (CRC) to protect the data, a reference tag to protect against misdirected writes, and an application tag.
As it is, though, the code doesn't do anything to make sure that clumsy users or programmer bugs don't cause incorrectly formatted data to be put into the number field.