类 CommunicationsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- java.sql.SQLRecoverableException
-
- com.mysql.cj.jdbc.exceptions.CommunicationsException
-
- 所有已实现的接口:
StreamingNotifiable,Serializable,Iterable<Throwable>
public class CommunicationsException extends SQLRecoverableException implements StreamingNotifiable
An exception to represent communications errors with the database. Attempts to provide 'friendlier' error messages to end-users, including the last time a packet was sent to the database, what the client-timeout is set to, and whether the idle time has been exceeded.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 CommunicationsException(JdbcConnection conn, PacketSentTimeHolder packetSentTimeHolder, PacketReceivedTimeHolder packetReceivedTimeHolder, Exception underlyingException)CommunicationsException(String message, Throwable underlyingException)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetMessage()StringgetSQLState()voidsetWasStreamingResults()-
从类继承的方法 java.sql.SQLException
getErrorCode, getNextException, iterator, setNextException
-
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
构造器详细资料
-
CommunicationsException
public CommunicationsException(JdbcConnection conn, PacketSentTimeHolder packetSentTimeHolder, PacketReceivedTimeHolder packetReceivedTimeHolder, Exception underlyingException)
-
-
方法详细资料
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
getSQLState
public String getSQLState()
- 覆盖:
getSQLState在类中SQLException
-
setWasStreamingResults
public void setWasStreamingResults()
- 指定者:
setWasStreamingResults在接口中StreamingNotifiable
-
-