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

Provides Base implementation ExceptionDataProvider of ExceptionSettings configuration More...

Inheritance diagram for Pavalisoft.ExceptionHandling.DefaultExceptionDataProvider:
Pavalisoft.ExceptionHandling.ExceptionDataProvider Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider Pavalisoft.ExceptionHandling.ConfigurationExceptionDataProvider

Public Member Functions

 DefaultExceptionDataProvider (IServiceProvider serviceProvider, Func< HandlingBehaviour, string, IExceptionHandler > exceptionHandlerAccessor)
 Creates an instance of DefaultExceptionDataProvider with IServiceProvider More...
 
override ExceptionSettings LoadExceptionSettings ()
 Loads Exception Settings Configuration
 
- Public Member Functions inherited from Pavalisoft.ExceptionHandling.ExceptionDataProvider
ExceptionSettings GetExceptionSettings ()
 Gets ExceptionSettings from configuration More...
 
IEnumerable< IExceptionHandlerGetExceptionHandlers ()
 Gets IExceptionHandlers from ExceptionSettings More...
 
IEnumerable< IErrorDetailGetExceptionDetails ()
 Gets IErrorDetails from ExceptionSettings More...
 
IErrorDetail GetExceptionDetail (string errorCodeName)
 Gets IErrorDetail having errorCodeName More...
 
IExceptionHandler GetExceptionHandler (string handlerName)
 Gets IExceptionHandler have name as handlerName More...
 

Additional Inherited Members

- Public Attributes inherited from Pavalisoft.ExceptionHandling.ExceptionDataProvider
bool LocalizationEnabled => _exceptionSettings.EnableLocalization
 
bool LoggingEnabled => _exceptionSettings.EnableLogging
 
- Protected Member Functions inherited from Pavalisoft.ExceptionHandling.ExceptionDataProvider
 ExceptionDataProvider (Func< HandlingBehaviour, string, IExceptionHandler > exceptionHandlerAccessor)
 Creates an instance of ExceptionDataProvider More...
 
- Properties inherited from Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider
bool LocalizationEnabled [get]
 Gets true if the Localization enabled otherwise false More...
 
bool LoggingEnabled [get]
 Returns true if logging enbaled otherwsie false. More...
 

Detailed Description

Provides Base implementation ExceptionDataProvider of ExceptionSettings configuration

Constructor & Destructor Documentation

◆ DefaultExceptionDataProvider()

Pavalisoft.ExceptionHandling.DefaultExceptionDataProvider.DefaultExceptionDataProvider ( IServiceProvider  serviceProvider,
Func< HandlingBehaviour, string, IExceptionHandler exceptionHandlerAccessor 
)

Creates an instance of DefaultExceptionDataProvider with IServiceProvider

Parameters
serviceProviderIServiceProvider
exceptionHandlerAccessorDependency Service Provider for IExceptionHandler

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