You are here

protected function FeedsUcAddressesProcessor::createLogMessage in Ubercart Addresses 7

Overrides FeedsProcessor::createLogMessage().

Creates a log message for when an exception occured during import.

Parameters

Exception $e: The exception that was throwned during processing the item.

$entity: The entity object.

$item: The parser result for this entity.

Return value

string The message to log.

File

feeds/FeedsUcAddressesProcessor.inc, line 242
Contains the FeedsUcAddressesProcessor class.

Class

FeedsUcAddressesProcessor
A processor for importing data belonging to an Ubercart Addresses address.

Code

protected function createLogMessage(Exception $e, $entity, $item) {
  include_once DRUPAL_ROOT . '/includes/utility.inc';
  $message = $e
    ->getMessage();
  $message .= '<h3>Original item</h3>';
  $message .= '<pre>' . drupal_var_export($item) . '</pre>';
  $message .= '<h3>Address</h3>';
  $message .= '<pre>' . $entity
    ->varExport() . '</pre>';
  return $message;
}