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