Module java.sql
Package java.sql

Class DataTruncation

java.lang.Object
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class DataTruncation extends SQLWarning
An exception thrown as a DataTruncation exception (on writes) or reported as a DataTruncation warning (on reads) when a data values is unexpectedly truncated for reasons other than its having exceeded MaxFieldSize.

The SQLstate for a DataTruncation during read is 01004.

The SQLstate for a DataTruncation during write is 22001.

Since:
1.1
See Also: