Pavalisoft.ExceptionHandling  1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
Pavalisoft.ExceptionHandling.ExceptionFilter Class Reference

Adds IExceptionHandler to ExceptionFilterAttribute More...

Inheritance diagram for Pavalisoft.ExceptionHandling.ExceptionFilter:

Public Member Functions

 ExceptionFilter (IExceptionManager exceptionManager, IExceptionCodesDecider exceptionCodesDecider)
 Creates an instance of ExceptionFilter with IExceptionManager More...
 
override void OnException (ExceptionContext context)
 Handles exception using IExceptionManager More...
 
override Task OnExceptionAsync (ExceptionContext context)
 Handles exception using IExceptionManager asynchronously More...
 

Detailed Description

Adds IExceptionHandler to ExceptionFilterAttribute

Constructor & Destructor Documentation

◆ ExceptionFilter()

Pavalisoft.ExceptionHandling.ExceptionFilter.ExceptionFilter ( IExceptionManager  exceptionManager,
IExceptionCodesDecider  exceptionCodesDecider 
)

Creates an instance of ExceptionFilter with IExceptionManager

Parameters
exceptionManagerIExceptionManager to be used in ExceptionFilter
exceptionCodesDeciderIExceptionCodesDecider to be used in ExceptionFilter

Member Function Documentation

◆ OnException()

override void Pavalisoft.ExceptionHandling.ExceptionFilter.OnException ( ExceptionContext  context)

Handles exception using IExceptionManager

Parameters
context

◆ OnExceptionAsync()

override Task Pavalisoft.ExceptionHandling.ExceptionFilter.OnExceptionAsync ( ExceptionContext  context)

Handles exception using IExceptionManager asynchronously

Parameters
context

The documentation for this class was generated from the following file: