Pavalisoft.ExceptionHandling  1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
Pavalisoft.ExceptionHandling.ExceptionRaiser Class Reference

Provides Api to create and throws Exceptions More...

Inheritance diagram for Pavalisoft.ExceptionHandling.ExceptionRaiser:
Pavalisoft.ExceptionHandling.Interfaces.IExceptionRaiser

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
 

Detailed Description

Provides Api to create and throws Exceptions

Constructor & Destructor Documentation

◆ ExceptionRaiser()

Pavalisoft.ExceptionHandling.ExceptionRaiser.ExceptionRaiser ( IExceptionDataProvider  exceptionDataProvider,
IErrorDetailLocalizer  errorDetailLocalizer,
IExceptionLogger  exceptionLogger 
)

Creates an instance of ExceptionManager

Parameters
exceptionDataProviderProvides ExceptionSettings for exception hnandling.
errorDetailLocalizerThe IErrorDetailLocalizer to use the localized exception messages.
exceptionLoggerThe IExceptionLogger used to log the exception before handling or raising.

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