Home » MySQL-JDBC-5.1.11 » com.mysql.jdbc.exceptions.jdbc4 » [javadoc | source]
com.mysql.jdbc.exceptions.jdbc4
public class: CommunicationsException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.sql.SQLException
            java.sql.SQLRecoverableException
               com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

All Implemented Interfaces:
    StreamingNotifiable, Iterable, Serializable

An exception to represent communications errors with the database. Attempts to provide 'friendler' error messages to end-users, including last time a packet was sent to the database, what the client-timeout is set to, and whether the idle time has been exceeded.
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public CommunicationsException(ConnectionImpl conn,
    long lastPacketSentTimeMs,
    long lastPacketReceivedTimeMs,
    Exception underlyingException) 
Method from com.mysql.jdbc.exceptions.jdbc4.CommunicationsException Summary:
getMessage,   getSQLState,   setWasStreamingResults
Methods from java.sql.SQLException:
getErrorCode,   getNextException,   getSQLState,   iterator,   setNextException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.mysql.jdbc.exceptions.jdbc4.CommunicationsException Detail:
 public String getMessage() 
 public String getSQLState() 
 public  void setWasStreamingResults()