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

Provide the ExceptionSettings to IExceptionManager and IExceptionHandler More...

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

Public Member Functions

ExceptionSettings GetExceptionSettings ()
 Provides configured ExceptionSettings More...
 
IEnumerable< IExceptionHandlerGetExceptionHandlers ()
 Provides the configured IExceptionHandlers More...
 
IExceptionHandler GetExceptionHandler (string handlerName=null)
 Gets the IExceptionHandler having name handlerName . More...
 
IEnumerable< IErrorDetailGetExceptionDetails ()
 Gets list of configured IErrorDetail More...
 
IErrorDetail GetExceptionDetail (string errorCodeName=null)
 Gets IErrorDetail having errorCodeName More...
 

Properties

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

Member Function Documentation

◆ GetExceptionDetail()

IErrorDetail Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.GetExceptionDetail ( string  errorCodeName = null)

Gets IErrorDetail having errorCodeName

Parameters
errorCodeNameError code of the IErrorDetail
Returns
IErrorDetail with errorCodeName

Implemented in Pavalisoft.ExceptionHandling.ExceptionDataProvider.

◆ GetExceptionDetails()

IEnumerable<IErrorDetail> Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.GetExceptionDetails ( )

Gets list of configured IErrorDetail

Returns
List of IErrorDetail

Implemented in Pavalisoft.ExceptionHandling.ExceptionDataProvider.

◆ GetExceptionHandler()

IExceptionHandler Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.GetExceptionHandler ( string  handlerName = null)

Gets the IExceptionHandler having name handlerName .

Parameters
handlerNameThe name of IExceptionHandler
Returns
IExceptionHandler instance from ExceptionSettings

Implemented in Pavalisoft.ExceptionHandling.ExceptionDataProvider.

◆ GetExceptionHandlers()

IEnumerable<IExceptionHandler> Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.GetExceptionHandlers ( )

Provides the configured IExceptionHandlers

Returns

Implemented in Pavalisoft.ExceptionHandling.ExceptionDataProvider.

◆ GetExceptionSettings()

ExceptionSettings Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.GetExceptionSettings ( )

Property Documentation

◆ LocalizationEnabled

bool Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.LocalizationEnabled
get

Gets true if the Localization enabled otherwise false

◆ LoggingEnabled

bool Pavalisoft.ExceptionHandling.Interfaces.IExceptionDataProvider.LoggingEnabled
get

Returns true if logging enbaled otherwsie false.


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