Class MysqlDataTruncation
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
java.sql.DataTruncation
com.mysql.jdbc.MysqlDataTruncation
- All Implemented Interfaces:
Serializable, Iterable<Throwable>
MySQL wrapper for DataTruncation until the server can support sending all needed information.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMysqlDataTruncation(String message, int index, boolean parameter, boolean read, int dataSize, int transferSize, int vendorErrorCode) Creates a new MysqlDataTruncation exception/warning. -
Method Summary
Methods inherited from class DataTruncation
getDataSize, getIndex, getParameter, getRead, getTransferSizeMethods inherited from class SQLWarning
getNextWarning, setNextWarningMethods inherited from class SQLException
getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MysqlDataTruncation
public MysqlDataTruncation(String message, int index, boolean parameter, boolean read, int dataSize, int transferSize, int vendorErrorCode) Creates a new MysqlDataTruncation exception/warning.- Parameters:
message- the message from the serverindex- of column or parameterparameter- was a parameter?read- was truncated on read?dataSize- size requestedtransferSize- size actually used
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Overrides:
getErrorCodein classSQLException
-
getMessage
- Overrides:
getMessagein classThrowable
-