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

Provides Api to handle Exceptions More...

Inheritance diagram for Pavalisoft.ExceptionHandling.ExceptionManager:
Pavalisoft.ExceptionHandling.Interfaces.IExceptionManager

Public Member Functions

 ExceptionManager (IExceptionDataProvider exceptionDataProvider, IActionResultCreator actionResultCreator, IErrorDetailLocalizer errorDetailLocalizer, IExceptionLogger exceptionLogger)
 Creates an instance of ExceptionManager More...
 
IActionResult ManageException (Exception ex, params object[] args)
 Handles raised Exception with args
 
IActionResult ManageException (string errorCode, Exception ex, params object[] args)
 Handles Exception with the ErrorDetail of the errorCode
 

Detailed Description

Provides Api to handle Exceptions

Constructor & Destructor Documentation

◆ ExceptionManager()

Pavalisoft.ExceptionHandling.ExceptionManager.ExceptionManager ( IExceptionDataProvider  exceptionDataProvider,
IActionResultCreator  actionResultCreator,
IErrorDetailLocalizer  errorDetailLocalizer,
IExceptionLogger  exceptionLogger 
)

Creates an instance of ExceptionManager

Parameters
exceptionDataProviderProvides ExceptionSettings for exception hnandling.
actionResultCreatorThe IActionResultCreator to create IActionResult
errorDetailLocalizerThe IErrorDetailLocalizer to use the localized exception messages.
exceptionLoggerThe IExceptionLogger used to log the exception before handling or raising.

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