类 CJException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mysql.cj.exceptions.CJException
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
AssertionFailedException,CJCommunicationsException,CJOperationNotSupportedException,CJPacketTooBigException,CJTimeoutException,ClosedOnExpiredPasswordException,ConnectionIsClosedException,DataReadException,DataTruncationException,FeatureNotAvailableException,InvalidConnectionAttributeException,OperationCancelledException,PasswordExpiredException,PropertyNotModifiableException,RSAException,SSLParamsException,StatementIsClosedException,UnableToConnectException,UnsupportedConnectionStringException,WrongArgumentException,XDevAPIError,XProtocolError
public class CJException extends RuntimeException
The base unchecked exception thrown internally in connector.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StringexceptionMessageWe can't override theThrowable.detailMessagedirectly because it has a private accessibility, thus for that need we use this protected variable and overridegetMessage()
-
构造器概要
构造器 限定符 构造器 说明 CJException()CJException(String message)CJException(String message, Throwable cause)protectedCJException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)CJException(Throwable cause)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidappendMessage(String messageToAppend)StringgetMessage()StringgetSQLState()intgetVendorCode()booleanisTransient()voidsetSQLState(String sQLState)voidsetTransient(boolean isTransient)voidsetVendorCode(int vendorCode)
-
-
-
字段详细资料
-
exceptionMessage
protected String exceptionMessage
We can't override theThrowable.detailMessagedirectly because it has a private accessibility, thus for that need we use this protected variable and overridegetMessage()
-
-
方法详细资料
-
getSQLState
public String getSQLState()
-
setSQLState
public void setSQLState(String sQLState)
-
getVendorCode
public int getVendorCode()
-
setVendorCode
public void setVendorCode(int vendorCode)
-
isTransient
public boolean isTransient()
-
setTransient
public void setTransient(boolean isTransient)
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
appendMessage
public void appendMessage(String messageToAppend)
-
-