Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProcessingErrorAggregatorInterface.php
Go to the documentation of this file.
1 <?php
8 
16 {
17  const VALIDATION_STRATEGY_SKIP_ERRORS = 'validation-skip-errors';
18  const VALIDATION_STRATEGY_STOP_ON_ERROR = 'validation-stop-on-errors';
19 
31  public function addError(
32  $errorCode,
34  $rowNumber = null,
35  $columnName = null,
36  $errorMessage = null,
37  $errorDescription = null
38  );
39 
46  public function addRowToSkip($rowNumber);
47 
55  public function addErrorMessageTemplate($code, $template);
56 
63  public function isRowInvalid($rowNumber);
64 
70  public function getInvalidRowsCount();
71 
80  public function initValidationStrategy($validationStrategy, $allowedErrorCount = 0);
81 
87  public function hasToBeTerminated();
88 
94  public function isErrorLimitExceeded();
95 
101  public function hasFatalExceptions();
102 
108  public function getAllErrors();
109 
116  public function getErrorsByCode(array $codes);
117 
124  public function getErrorByRowNumber($rowNumber);
125 
134  public function getRowsGroupedByErrorCode(
135  array $errorCode = [],
136  array $excludedCodes = [],
137  $replaceCodeWithMessage = true
138  );
139 
145  public function getAllowedErrorsCount();
146 
153  public function getErrorsCount(
154  array $errorLevels = [
157  ]
158  );
159 
165  public function clear();
166 }
getErrorsCount(array $errorLevels=[ProcessingError::ERROR_LEVEL_CRITICAL, ProcessingError::ERROR_LEVEL_NOT_CRITICAL])
addError( $errorCode, $errorLevel=ProcessingError::ERROR_LEVEL_CRITICAL, $rowNumber=null, $columnName=null, $errorMessage=null, $errorDescription=null)
getRowsGroupedByErrorCode(array $errorCode=[], array $excludedCodes=[], $replaceCodeWithMessage=true)
$template
Definition: export.php:12
$code
Definition: info.phtml:12