You are here

public function FeedImportProcessor::addError in Feed Import 7.3

Adds an error to report

Parameters

string $errmsg: Error message

int $errno: Error number

int $line: Error line

string $file: Error file

4 calls to FeedImportProcessor::addError()
FeedImportProcessor::setEntityInfo in feed_import_base/inc/feed_import.inc
Sets the entity info object.
FeedImportProcessor::setFields in feed_import_base/inc/feed_import.inc
Sets entity fields.
FeedImportProcessor::setFilter in feed_import_base/inc/feed_import.inc
Sets the filters object.
FeedImportProcessor::setUniq in feed_import_base/inc/feed_import.inc
Sets uniq path for monitoring items.

File

feed_import_base/inc/feed_import.inc, line 752
This file contains Feed Import helpers.

Class

FeedImportProcessor
Class that processess the import.

Code

public function addError($errmsg, $errno = 0, $line = NULL, $file = NULL) {
  $this->report['errors'][] = array(
    'error' => $errmsg,
    'error number' => $errno,
    'line' => $line,
    'file' => $file,
  );
}