System.Data.Common.DataAdapter.OnFillErrorHandler C# (CSharp) Method

OnFillErrorHandler() private method

private OnFillErrorHandler ( Exception e, DataTable dataTable, object dataValues ) : void
e System.Exception
dataTable System.Data.DataTable
dataValues object
return void
        private void OnFillErrorHandler(Exception e, DataTable dataTable, object[] dataValues)
        {
            FillErrorEventArgs fillErrorEvent = new FillErrorEventArgs(dataTable, dataValues);
            fillErrorEvent.Errors = e;
            OnFillError(fillErrorEvent);

            if (!fillErrorEvent.Continue)
            {
                if (null != fillErrorEvent.Errors)
                {
                    throw fillErrorEvent.Errors;
                }
                throw e;
            }
        }