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

Provides implementation to create and raise Exceptions in application logic to be handled in IExceptionManager More...

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

Public Member Functions

void RaiseException (string errorCode, params object[] args)
 Raises Exception using ErrorDetail having errorCode with args More...
 
void RaiseException (string errorCode, Exception ex, params object[] args)
 Raises Exception by handling ex using ErrorDetail having errorCode with args More...
 

Detailed Description

Provides implementation to create and raise Exceptions in application logic to be handled in IExceptionManager

Member Function Documentation

◆ RaiseException() [1/2]

void Pavalisoft.ExceptionHandling.Interfaces.IExceptionRaiser.RaiseException ( string  errorCode,
params object []  args 
)

Raises Exception using ErrorDetail having errorCode with args

Parameters
errorCodeErrorDetail having error code to be used while raising exception.
argsAdditional data to be considered while raising Exception

Implemented in Pavalisoft.ExceptionHandling.ExceptionRaiser.

◆ RaiseException() [2/2]

void Pavalisoft.ExceptionHandling.Interfaces.IExceptionRaiser.RaiseException ( string  errorCode,
Exception  ex,
params object []  args 
)

Raises Exception by handling ex using ErrorDetail having errorCode with args

Parameters
errorCodeErrorDetail having error code to be used while raising exception.
exException to be handled.
argsAdditional data to be considered while raising Exception

Implemented in Pavalisoft.ExceptionHandling.ExceptionRaiser.


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