Exemple #1
0
	/**
	* put your comment there...
	*
	* @param mixed $ack
	* @param mixed $requestName
	* @param mixed $requestXML
	* @param SimpleXMLElement $responseXML
	* @param mixed $errorMessage
	* @return ISC_EBAY_API_REQUEST_EXCEPTION
	*/
	public function __construct($ack, $requestName, $requestXML, $responseXML, $errorMessage)
	{
		$this->ack = $ack;
		$this->responseXML = $responseXML;

		parent::__construct($requestName, $requestXML, $errorMessage);
	}
Exemple #2
0
	/**
	* Logs an exception on the entire request
	*
	* @param array $products The products in the batch
	* @param ISC_EBAY_API_EXCEPTION $ex The exception that was caught
	*/
	private function logBatchException($products, $ex)
	{
		$ids = "Product ID's: " . implode(', ', array_keys($products));

		$this->_logDebug('exception processing batch', $ex->getMessage());

		// log error
		$error = array(
			'prodname' => $ids,
			'time' => time(),
			'message' => $ex->getMessage(),
		);

		$this->_keystore->set($this->_prefix . 'error:' . md5($ids . uniqid('', true)), ISC_JSON::encode($error));
	}