Class CommunicationsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.mysql.jdbc.CommunicationsException
- All Implemented Interfaces:
StreamingNotifiable, Serializable, Iterable<Throwable>
- Direct Known Subclasses:
ConnectionFeatureNotAvailableException
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommunicationsException(MySQLConnection conn, long lastPacketSentTimeMs, long lastPacketReceivedTimeMs, Exception underlyingException) -
Method Summary
Modifier and TypeMethodDescriptionvoidMethods inherited from class SQLException
getErrorCode, getNextException, 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
-
CommunicationsException
public CommunicationsException(MySQLConnection conn, long lastPacketSentTimeMs, long lastPacketReceivedTimeMs, Exception underlyingException)
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getSQLState
- Overrides:
getSQLStatein classSQLException
-
setWasStreamingResults
public void setWasStreamingResults()- Specified by:
setWasStreamingResultsin interfaceStreamingNotifiable
-