Top Methods
com.mysql.cj.exceptions

public Interface ExceptionInterceptor

Known Direct Implementers
com.mysql.cj.exceptions.ExceptionInterceptorChain
Imports
java.util.Properties, com.mysql.cj.log.Log

Method Summary

Modifier and TypeMethod and Description
public void
destroy()

Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.

public ExceptionInterceptor
init(Properties
configuration values as passed to the connection. Note that in order to support javax.sql.DataSources, configuration properties specific to an interceptor must be passed via setURL() on the DataSource. Extension properties are not exposed via accessor/mutator methods on DataSources.
props
,
Log
logger instance
log
)

Called once per connection that wants to use the extension The properties are the same ones passed in in the URL or arguments to Driver.connect() or DriverManager.getConnection().

public Exception

Method Detail

destroyback to summary
public void destroy()

Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.

initback to summary
public ExceptionInterceptor init(Properties props, Log log)

Called once per connection that wants to use the extension The properties are the same ones passed in in the URL or arguments to Driver.connect() or DriverManager.getConnection().

Parameters
props:Properties

configuration values as passed to the connection. Note that in order to support javax.sql.DataSources, configuration properties specific to an interceptor must be passed via setURL() on the DataSource. Extension properties are not exposed via accessor/mutator methods on DataSources.

log:Log

logger instance

Returns:ExceptionInterceptor

ExceptionInterceptor

interceptExceptionback to summary
public Exception interceptException(Exception sqlEx)