|
Pavalisoft.ExceptionHandling
1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
|
Provides Api to create and throws Exceptions More...
Public Member Functions | |
| ExceptionRaiser (IExceptionDataProvider exceptionDataProvider, IErrorDetailLocalizer errorDetailLocalizer, IExceptionLogger exceptionLogger) | |
| Creates an instance of ExceptionManager More... | |
| void | RaiseException (string errorCode, params object[] args) |
| Raises Exception using ErrorDetail having errorCode with args | |
| void | RaiseException (string errorCode, Exception ex, params object[] args) |
| Raises Exception by handling ex using ErrorDetail having errorCode with args | |
Provides Api to create and throws Exceptions
| Pavalisoft.ExceptionHandling.ExceptionRaiser.ExceptionRaiser | ( | IExceptionDataProvider | exceptionDataProvider, |
| IErrorDetailLocalizer | errorDetailLocalizer, | ||
| IExceptionLogger | exceptionLogger | ||
| ) |
Creates an instance of ExceptionManager
| exceptionDataProvider | Provides ExceptionSettings for exception hnandling. |
| errorDetailLocalizer | The IErrorDetailLocalizer to use the localized exception messages. |
| exceptionLogger | The IExceptionLogger used to log the exception before handling or raising. |