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