Beispiel #1
0
 public function completeUnsuccessfulProcessing($message)
 {
     try {
         $this->unsetLocks(true, $message);
         $this->processingRequest->deleteInstance();
     } catch (Exception $exception) {
         $this->forceRemoveLockedObjectsAndRequest();
         Mage::helper('M2ePro/Exception')->process($exception, true);
     }
 }
 public function complete($errorMessage = null)
 {
     try {
         if (!is_null($this->processingRequest)) {
             $this->makeShutdownFunction();
             $this->getResponserObject()->unsetProcessingLocks($this->processingRequest);
             $this->getResponserObject()->eventAfterProcessing();
         }
         if (!is_null($errorMessage)) {
             $this->getResponserObject()->eventFailedExecuting($errorMessage);
         }
         $this->getResponserObject()->eventAfterExecuting();
         if ($this->processingRequest) {
             $this->processingRequest->deleteInstance();
         }
     } catch (Exception $exception) {
         $this->forceRemoveLockedObjectsAndProcessingRequest();
         Mage::helper('M2ePro/Module_Exception')->process($exception);
     }
 }