protected function _processException(Zend_Http_Client_Exception $exception, $uri)
    {
        $this->_status = 0;
        $config = $this->_getHandlerConfig($this->_getHandlerKey());
        $logMethod = isset($config['logger']) ? $config['logger'] : 'debug';
        // the zend http client throws exceptions that are generic and make it impractical to
        // generate a message that is more representative of what went wrong.
        $logData = array_merge(['rom_request_url' => $uri], $this->_logAppContext);
        $logMessage = "Problem with request to {$uri}:\n{$exception->getMessage()}";
        $this->_logger->$logMethod($logMessage, $this->_context->getMetaData(__CLASS__, $logData, $exception));
        $callbackConfig = isset($config['callback']) ? $config['callback'] : array();
        return Mage::helper('radial_core')->invokeCallBack($callbackConfig);
    }
protected function _processException(Zend_Http_Client_Exception $exception, $uri)
    {
        $this->_status = 0;
        $config = $this->_getHandlerConfig($this->_getHandlerKey());
        $logMethod = isset($config['logger']) ? $config['logger'] : 'debug';
        // the zend http client throws exceptions that are generic and make it impractical to
        // generate a message that is more representative of what went wrong.
        $logData = array_merge(['rom_request_url' => $uri], $this->_logAppContext);
        $logMessage = "Problem with request to {$uri}:\n{$exception->getMessage()}";
        $this->_logger->$logMethod($logMessage, $this->_context->getMetaData(__CLASS__, $logData, $exception));
        $callbackConfig = isset($config['callback']) ? $config['callback'] : array();
        return Mage::helper('radial_core')->invokeCallBack($callbackConfig);
    }
protected function _processException ( Zend_Http_Client_Exception $ exception , $ uri ) { $ this -> _status = 0 ; $ config = $ this -> _getHandlerConfig ( $ this -> _getHandlerKey ( ) ) ; $ logMethod = isset ( $ config [ 'logger' ] ) ? $ config [ 'logger' ] : 'debug' ; // the zend http client throws exceptions that are generic and make it impractical to // generate a message that is more representative of what went wrong. $ logData = array_merge ( [ 'rom_request_url' => $ uri ] , $ this -> _logAppContext ) ; $ logMessage = "Problem with request to {$uri}:\n{$exception->getMessage()}" ; $ this -> _logger -> $ logMethod ( $ logMessage , $ this -> _context -> getMetaData ( __CLASS__ , $ logData , $ exception ) ) ; $ callbackConfig = isset ( $ config [ 'callback' ] ) ? $ config [ 'callback' ] : array ( ) ; return Mage :: helper ( 'radial_core' ) -> invokeCallBack ( $ callbackConfig ) ; }
handle the exception thrown by the zend client and return the result of the
configured handler.
@param  Zend_Http_Client_Exception $exception
@param  string $uri
@return string
handle the exception thrown by the zend client and return the result of the configured handler .