Pavalisoft.ExceptionHandling
1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
|
Provides Api to handle Exceptions More...
Public Member Functions | |
ExceptionManager (IExceptionDataProvider exceptionDataProvider, IActionResultCreator actionResultCreator, IErrorDetailLocalizer errorDetailLocalizer, IExceptionLogger exceptionLogger) | |
Creates an instance of ExceptionManager More... | |
IActionResult | ManageException (Exception ex, params object[] args) |
Handles raised Exception with args | |
IActionResult | ManageException (string errorCode, Exception ex, params object[] args) |
Handles Exception with the ErrorDetail of the errorCode | |
Provides Api to handle Exceptions
Pavalisoft.ExceptionHandling.ExceptionManager.ExceptionManager | ( | IExceptionDataProvider | exceptionDataProvider, |
IActionResultCreator | actionResultCreator, | ||
IErrorDetailLocalizer | errorDetailLocalizer, | ||
IExceptionLogger | exceptionLogger | ||
) |
Creates an instance of ExceptionManager
exceptionDataProvider | Provides ExceptionSettings for exception hnandling. |
actionResultCreator | The IActionResultCreator to create IActionResult |
errorDetailLocalizer | The IErrorDetailLocalizer to use the localized exception messages. |
exceptionLogger | The IExceptionLogger used to log the exception before handling or raising. |