|
Pavalisoft.ExceptionHandling
1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
|
Provides Base implementation ExceptionDataProvider of ExceptionSettings configuration More...
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< IExceptionHandler > | GetExceptionHandlers () |
| Gets IExceptionHandlers from ExceptionSettings More... | |
| IEnumerable< IErrorDetail > | GetExceptionDetails () |
| 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... | |
Provides Base implementation ExceptionDataProvider of ExceptionSettings configuration
| Pavalisoft.ExceptionHandling.DefaultExceptionDataProvider.DefaultExceptionDataProvider | ( | IServiceProvider | serviceProvider, |
| Func< HandlingBehaviour, string, IExceptionHandler > | exceptionHandlerAccessor | ||
| ) |
Creates an instance of DefaultExceptionDataProvider with IServiceProvider
| serviceProvider | IServiceProvider |
| exceptionHandlerAccessor | Dependency Service Provider for IExceptionHandler |