/// <summary> /// Appends the passed BusinessOperationException's notifications to this instance's /// notifications and returns this instance. /// </summary> /// <param name="exception">BusinessOperationException whose notifications will be taken.</param> /// <returns>This instance with the parameter's notifications appended.</returns> public BusinessOperationException Append(BusinessOperationException exception) { foreach (var notification in exception.Notifications.Items) { Notifications.Add(notification); } return(this); }
protected virtual Exception OnBusinessException(BusinessOperationException businessEx) { return(businessEx); }
/// <summary> /// Appends the passed BusinessOperationException's notifications to this instance's /// notifications and returns this instance. /// </summary> /// <param name="exception">BusinessOperationException whose notifications will be taken.</param> /// <returns>This instance with the parameter's notifications appended.</returns> public BusinessOperationException Append(BusinessOperationException exception) { foreach (var notification in exception.Notifications.Items) { Notifications.Add(notification); } return this; }
protected override Exception OnBusinessException(BusinessOperationException businessEx) { BusinessExceptionVisited = true; return base.OnBusinessException(businessEx); }