Log in
Interface

ProcessingErrorAggregatorInterface

Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface

What it does

This interface defines the contract for aggregating and managing errors during Magento 2 import/export operations.

Developers use implementations of this interface to collect validation errors, track invalid rows, apply error-handling strategies (skip or stop), and retrieve error details for reporting.

It's essential for controlling import behavior when data quality issues are encountered.

Public Methods

  • addError()
  • addRowToSkip()
  • addErrorMessageTemplate()
  • isRowInvalid()
  • getInvalidRowsCount()
  • initValidationStrategy()
  • hasToBeTerminated()
  • isErrorLimitExceeded()
  • hasFatalExceptions()
  • getAllErrors()
  • getErrorsByCode()
  • getErrorByRowNumber()
  • getRowsGroupedByErrorCode()
  • getAllowedErrorsCount()
  • getErrorsCount()
  • clear()