Ejemplo n.º 1
0
 public void AddBusinessException(string exceptionMessage, Framework.Common.Service.Message.BusinessExceptionEnum exceptionType)
 {
     if (BusinessExceptionInstance == null)
     {
         BusinessExceptionInstance = new BusinessExceptionDto(exceptionType, exceptionMessage, "");
     }
 }
Ejemplo n.º 2
0
 public void AddBusinessException(BusinessExceptionDto exception)
 {
     if (exception != null && BusinessExceptionInstance == null)
     {
         BusinessExceptionInstance = exception;
     }
 }
Ejemplo n.º 3
0
 public void AddBusinessException(BusinessException exception)
 {
     if (BusinessExceptionInstance == null)
     {
         BusinessExceptionInstance = new BusinessExceptionDto(exception.ExceptionType, exception.Message, exception.StackTrace);
     }
 }