Table of Contents

Class ExceptionInterceptor

Namespace
LinqToDB.Interceptors
Assembly
linq2db.dll
public class ExceptionInterceptor : IExceptionInterceptor, IInterceptor
Inheritance
object
ExceptionInterceptor
Implements
Extension Methods

Methods

ProcessException(ExceptionEventData, Exception)

Event, triggered when an exception is thrown while executing a database command/query.

public virtual void ProcessException(ExceptionEventData eventData, Exception exception)

Parameters

eventData ExceptionEventData
exception Exception

The thrown Exception.

Remarks

Implementors should throw their own exceptions directly in this method. If this method returns normally, then the existing exception will be thrown.