|
Pavalisoft.ExceptionHandling
1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
|
Provides base implementation for IExceptionDataProvider More...
Public Member Functions | |
| abstract ExceptionSettings | LoadExceptionSettings () |
| Loads Exception Settings Configuration More... | |
| 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... | |
Public Attributes | |
| bool | LocalizationEnabled => _exceptionSettings.EnableLocalization |
| bool | LoggingEnabled => _exceptionSettings.EnableLogging |
Protected Member Functions | |
| ExceptionDataProvider (Func< HandlingBehaviour, string, IExceptionHandler > exceptionHandlerAccessor) | |
| Creates an instance of ExceptionDataProvider More... | |
Additional Inherited Members | |
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 for IExceptionDataProvider
|
protected |
Creates an instance of ExceptionDataProvider
| exceptionHandlerAccessor | Dependency Service Provider for IExceptionHandler |
| IErrorDetail Pavalisoft.ExceptionHandling.ExceptionDataProvider.GetExceptionDetail | ( | string | errorCodeName | ) |
Gets IErrorDetail having errorCodeName
| errorCodeName | Error Code |
Implements Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.
| IEnumerable<IErrorDetail> Pavalisoft.ExceptionHandling.ExceptionDataProvider.GetExceptionDetails | ( | ) |
Gets IErrorDetails from ExceptionSettings
Implements Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.
| IExceptionHandler Pavalisoft.ExceptionHandling.ExceptionDataProvider.GetExceptionHandler | ( | string | handlerName | ) |
Gets IExceptionHandler have name as handlerName
| handlerName | Exception Exception Handler |
Implements Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.
| IEnumerable<IExceptionHandler> Pavalisoft.ExceptionHandling.ExceptionDataProvider.GetExceptionHandlers | ( | ) |
Gets IExceptionHandlers from ExceptionSettings
Implements Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.
| ExceptionSettings Pavalisoft.ExceptionHandling.ExceptionDataProvider.GetExceptionSettings | ( | ) |
Gets ExceptionSettings from configuration
Implements Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.
|
pure virtual |
Loads Exception Settings Configuration
Implemented in Pavalisoft.ExceptionHandling.ConfigurationExceptionDataProvider, and Pavalisoft.ExceptionHandling.DefaultExceptionDataProvider.