/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Xrm.Sdk.SaveChangesException"></see> class with and error message, an inner exception, and <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> method call results.</summary> /// <param name="innerException">Type: Returns_Exception. The inner exception that is the cause of this exception.</param> /// <param name="message">Type: Returns_String. The error message that explains the reason for the exception.</param> /// <param name="results">Type: <see cref="T:Microsoft.Xrm.Sdk.SaveChangesResultCollection"></see>. The results returned from a <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> call.</param> public SaveChangesException( string message, Exception innerException, SaveChangesResultCollection results) : base(message, innerException) { this.Results = results; }
/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Xrm.Sdk.SaveChangesException"></see> class using an inner exception and <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> method call results.</summary> /// <param name="innerException">Type: Returns_Exception. The inner exception that is the cause of this exception.</param> /// <param name="results">Type: <see cref="T:Microsoft.Xrm.Sdk.SaveChangesResultCollection"></see>. The results returned from a <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> call.</param> public SaveChangesException(Exception innerException, SaveChangesResultCollection results) : this("An error occured while processing this request.", innerException, results) { }
/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Xrm.Sdk.SaveChangesException"></see> class using an error message and <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> method call results.</summary> /// <param name="message">Type: Returns_String. The error message that explains the reason for the exception.</param> /// <param name="results">Type: <see cref="T:Microsoft.Xrm.Sdk.SaveChangesResultCollection"></see>. The results returned from a <see cref="M:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges"></see> call.</param> public SaveChangesException(string message, SaveChangesResultCollection results) : this(message, SaveChangesException.GetException((IEnumerable <SaveChangesResult>)results), results) { }