public function setMagentoError($errorText)
    {
        $code    = $this->translateMagentoError($errorText);
        $message = \ShopgateLibraryException::getMessageFor($code);
        $this->setUnhandledError($code, $message);

        return $this;
    }
public function setMagentoError($errorText)
    {
        $code    = $this->translateMagentoError($errorText);
        $message = \ShopgateLibraryException::getMessageFor($code);
        $this->setUnhandledError($code, $message);

        return $this;
    }
public function setMagentoError ( $ errorText ) { $ code = $ this -> translateMagentoError ( $ errorText ) ; $ message = \ ShopgateLibraryException :: getMessageFor ( $ code ) ; $ this -> setUnhandledError ( $ code , $ message ) ; return $ this ; }
Takes a magento quote exception
and translated it into Shopgate error

@param string $errorText

@return OrderItem
Takes a magento quote exception and translated it into Shopgate error