Top Fields Constructors Methods
com.mysql.cj.exceptions

public Class ExceptionInterceptorChain

extends Object
implements ExceptionInterceptor
Class Inheritance
All Implemented Interfaces
com.mysql.cj.exceptions.ExceptionInterceptor
Imports
java.util.LinkedList, .List, .Properties, java.util.stream.Collectors, com.mysql.cj.log.Log, com.mysql.cj.util.Util

Field Summary

Modifier and TypeField and Description
private List<ExceptionInterceptor>

Constructor Summary

AccessConstructor and Description
public
ExceptionInterceptorChain(String interceptorClasses, Properties props, Log log)

Method Summary

Modifier and TypeMethod and Description
public void
public void
destroy()

Implements com.mysql.cj.exceptions.ExceptionInterceptor.destroy.

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

public List<ExceptionInterceptor>
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.
properties
,
Log
logger instance
log
)

Implements com.mysql.cj.exceptions.ExceptionInterceptor.init.

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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

interceptorsback to summary
private List<ExceptionInterceptor> interceptors

Constructor Detail

ExceptionInterceptorChainback to summary
public ExceptionInterceptorChain(String interceptorClasses, Properties props, Log log)

Method Detail

addRingZeroback to summary
public void addRingZero(ExceptionInterceptor interceptor)
destroyback to summary
public void destroy()

Implements com.mysql.cj.exceptions.ExceptionInterceptor.destroy.

Doc from com.mysql.cj.exceptions.ExceptionInterceptor.destroy.

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

Annotations
@Override
getInterceptorsback to summary
public List<ExceptionInterceptor> getInterceptors()
initback to summary
public ExceptionInterceptor init(Properties properties, Log log)

Implements com.mysql.cj.exceptions.ExceptionInterceptor.init.

Doc from com.mysql.cj.exceptions.ExceptionInterceptor.init.

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
properties: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

Annotations
@Override
interceptExceptionback to summary
public Exception interceptException(Exception sqlEx)

Implements com.mysql.cj.exceptions.ExceptionInterceptor.interceptException.

Annotations
@Override