MySQL Connector/J size='-1'>5.0.8

com.mysql.jdbc
Class CommunicationsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended bycom.mysql.jdbc.CommunicationsException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectionFeatureNotAvailableException

public class CommunicationsException
extends java.sql.SQLException

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.

Version:
$Id: CommunicationsException.java,v 1.1.2.1 2005/05/13 18:58:37 mmatthews Exp $
Author:
Mark Matthews
See Also:
Serialized Form

Constructor Summary
CommunicationsException(Connection conn, long lastPacketSentTimeMs, java.lang.Exception underlyingException)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.String getSQLState()
           
protected  void setWasStreamingResults()
           
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, 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

CommunicationsException

public CommunicationsException(Connection conn,
                               long lastPacketSentTimeMs,
                               java.lang.Exception underlyingException)
Method Detail

getMessage

public java.lang.String getMessage()

getSQLState

public java.lang.String getSQLState()

setWasStreamingResults

protected void setWasStreamingResults()

MySQL Connector/J size='-1'>5.0.8