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