com.mysql.jdbc
Class MysqlDataTruncation

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by java.sql.SQLWarning
                  extended by java.sql.DataTruncation
                      extended by com.mysql.jdbc.MysqlDataTruncation
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

public class MysqlDataTruncation
extends java.sql.DataTruncation

MySQL wrapper for DataTruncation until the server can support sending all needed information.

See Also:
Serialized Form

Constructor Summary
MysqlDataTruncation(java.lang.String message, int index, boolean parameter, boolean read, int dataSize, int transferSize, int vendorErrorCode)
          Creates a new MysqlDataTruncation exception/warning.
 
Method Summary
 int getErrorCode()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.sql.DataTruncation
getDataSize, getIndex, getParameter, getRead, getTransferSize
 
Methods inherited from class java.sql.SQLWarning
getNextWarning, setNextWarning
 
Methods inherited from class java.sql.SQLException
getNextException, getSQLState, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MysqlDataTruncation

public MysqlDataTruncation(java.lang.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 server
index - of column or parameter
parameter - was a parameter?
read - was truncated on read?
dataSize - size requested
transferSize - size actually used
Method Detail

getErrorCode

public int getErrorCode()
Overrides:
getErrorCode in class java.sql.SQLException

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable