System.Data.Common.DbDataAdapter.UpdatingRowStatusErrors C# (CSharp) Method

UpdatingRowStatusErrors() private method

private UpdatingRowStatusErrors ( RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow ) : void
rowUpdatedEvent RowUpdatingEventArgs
dataRow System.Data.DataRow
return void
        private void UpdatingRowStatusErrors(RowUpdatingEventArgs rowUpdatedEvent, DataRow dataRow)
        {
            Debug.Assert(null != dataRow, "null dataRow");
            Exception errors = rowUpdatedEvent.Errors;

            if (null == errors)
            {
                // user changed status to ErrorsOccured without supplying an exception message
                errors = ADP.RowUpdatingErrors();
                rowUpdatedEvent.Errors = errors;
            }
            string message = errors.Message;
            dataRow.RowError += message;

            if (!ContinueUpdateOnError)
            {
                throw errors; // out of Update
            }
        }