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

Handles Exception and provides ExceptionData used in IActionResult creation More...

Inheritance diagram for Pavalisoft.ExceptionHandling.Interfaces.IExceptionHandler:
Pavalisoft.ExceptionHandling.Handlers.BaseExceptionHandler Pavalisoft.ExceptionHandling.Handlers.DefaultExceptionHandler Pavalisoft.ExceptionHandling.Handlers.PropagateExceptionHandler Pavalisoft.ExceptionHandling.Handlers.SupressExceptionHandler Pavalisoft.ExceptionHandling.Handlers.WrapExceptionHandler

Public Member Functions

ExceptionData HandleException (IErrorDetail detail, Exception ex=null)
 Handles exception ex with error detail More...
 
void SetHandlerConfig (string handlerConfig)
 Sets the additional IExceptionHandler settings from handlerConfig More...
 

Detailed Description

Handles Exception and provides ExceptionData used in IActionResult creation

Member Function Documentation

◆ HandleException()

ExceptionData Pavalisoft.ExceptionHandling.Interfaces.IExceptionHandler.HandleException ( IErrorDetail  detail,
Exception  ex = null 
)

Handles exception ex with error detail

Parameters
detailIErrorDetail used to handle exception ex
exException to be handled.
Returns
ExceptionData to be used in IActionResult creation after handling the exception ex

Implemented in Pavalisoft.ExceptionHandling.Handlers.BaseExceptionHandler, Pavalisoft.ExceptionHandling.Handlers.PropagateExceptionHandler, Pavalisoft.ExceptionHandling.Handlers.SupressExceptionHandler, and Pavalisoft.ExceptionHandling.Handlers.WrapExceptionHandler.

◆ SetHandlerConfig()

void Pavalisoft.ExceptionHandling.Interfaces.IExceptionHandler.SetHandlerConfig ( string  handlerConfig)

Sets the additional IExceptionHandler settings from handlerConfig

Parameters
handlerConfigJson string

Implemented in Pavalisoft.ExceptionHandling.Handlers.BaseExceptionHandler.


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