Top Description Fields Constructors Methods
com.mysql.cj.jdbc.exceptions

public Class ConnectionFeatureNotAvailableException

extends CommunicationsException
Class Inheritance
Imports
com.mysql.cj.Messages, com.mysql.cj.exceptions.MysqlErrorNumbers, com.mysql.cj.jdbc.JdbcConnection, com.mysql.cj.protocol.PacketSentTimeHolder

Thrown when a client requests a connection-level feature that isn't available for this particular distribution of Connector/J (currently only used by code that is export-controlled).

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides com.mysql.cj.jdbc.exceptions.CommunicationsException.getMessage.

Returns the detail message string of this throwable.

public String
getSQLState()

Overrides com.mysql.cj.jdbc.exceptions.CommunicationsException.getSQLState.

Retrieves the SQLState for this SQLException object.

Inherited from com.mysql.cj.jdbc.exceptions.CommunicationsException:
setWasStreamingResults

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.mysql.cj.jdbc.exceptions.CommunicationsException.serialVersionUID.

Constructor Detail

ConnectionFeatureNotAvailableExceptionback to summary
public ConnectionFeatureNotAvailableException(JdbcConnection conn, PacketSentTimeHolder packetSentTimeHolder, Exception underlyingException)
ConnectionFeatureNotAvailableExceptionback to summary
public ConnectionFeatureNotAvailableException(String message, Throwable underlyingException)

Method Detail

getMessageback to summary
public String getMessage()

Overrides com.mysql.cj.jdbc.exceptions.CommunicationsException.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getSQLStateback to summary
public String getSQLState()

Overrides com.mysql.cj.jdbc.exceptions.CommunicationsException.getSQLState.

Doc from java.sql.SQLException.getSQLState.

Retrieves the SQLState for this SQLException object.

Returns:String

the SQLState value

Annotations
@Override