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

Provides Json based ExceptionSettings configuration More...

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

Public Member Functions

 ConfigurationExceptionDataProvider (IConfiguration configuration, IServiceProvider serviceProvider, Func< HandlingBehaviour, string, IExceptionHandler > exceptionHandlerAccessor)
 Creates an instance of ConfigurationExceptionDataProvider with IConfiguration More...
 
override ExceptionSettings LoadExceptionSettings ()
 Loads Exception Settings Configuration
 
- Public Member Functions inherited from Pavalisoft.ExceptionHandling.DefaultExceptionDataProvider
 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 Json based ExceptionSettings configuration

Constructor & Destructor Documentation

◆ ConfigurationExceptionDataProvider()

Pavalisoft.ExceptionHandling.ConfigurationExceptionDataProvider.ConfigurationExceptionDataProvider ( IConfiguration  configuration,
IServiceProvider  serviceProvider,
Func< HandlingBehaviour, string, IExceptionHandler exceptionHandlerAccessor 
)

Creates an instance of ConfigurationExceptionDataProvider with IConfiguration

Parameters
configurationIConfiguration object to read appSettings.json
serviceProviderIServiceProvider
exceptionHandlerAccessorDependency Service Provider for IExceptionHandler

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