Class BaseExceptionInterceptor
BaseExceptionInterceptor is the base class that should be used for all userland exception interceptors.
Inheritance
System.Object
BaseExceptionInterceptor
Namespace: MySql.Data.MySqlClient.Interceptors
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public abstract class BaseExceptionInterceptor
Properties
ActiveConnection
Gets the active connection.
Declaration
protected MySqlConnection ActiveConnection { get; }
Property Value
Type | Description |
---|---|
My |
Methods
Init(MySqlConnection)
Initilizes this object by setting the active connection.
Declaration
public virtual void Init(MySqlConnection connection)
Parameters
Type | Name | Description |
---|---|---|
My |
connection | The connection to become active. |
InterceptException(Exception)
Returns the received exception.
Declaration
public abstract Exception InterceptException(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System. |
exception | The exception to be returned. |
Returns
Type | Description |
---|---|
System. |
The exception originally received. |