类 MysqlDataTruncation
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- java.sql.SQLWarning
-
- java.sql.DataTruncation
-
- com.mysql.cj.jdbc.exceptions.MysqlDataTruncation
-
- 所有已实现的接口:
Serializable,Iterable<Throwable>
public class MysqlDataTruncation extends DataTruncation
MySQL wrapper for DataTruncation until the server can support sending all needed information.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 MysqlDataTruncation(String message, int index, boolean parameter, boolean read, int dataSize, int transferSize, int vendorErrorCode)Creates a new MysqlDataTruncation exception/warning.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetErrorCode()StringgetMessage()-
从类继承的方法 java.sql.DataTruncation
getDataSize, getIndex, getParameter, getRead, getTransferSize
-
从类继承的方法 java.sql.SQLWarning
getNextWarning, setNextWarning
-
从类继承的方法 java.sql.SQLException
getNextException, getSQLState, iterator, setNextException
-
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
构造器详细资料
-
MysqlDataTruncation
public MysqlDataTruncation(String message, int index, boolean parameter, boolean read, int dataSize, int transferSize, int vendorErrorCode)
Creates a new MysqlDataTruncation exception/warning.- 参数:
message- the message from the serverindex- of column or parameterparameter- was a parameter?read- was truncated on read?dataSize- size requestedtransferSize- size actually usedvendorErrorCode- MySQL error code
-
-
方法详细资料
-
getErrorCode
public int getErrorCode()
- 覆盖:
getErrorCode在类中SQLException
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
-