<?php
/**
* Response exception
*
* @category Xodoa
* @package Elastica
* @author Nicolas Ruflin <hide@address.com>
*/
class Elastica_Exception_Response extends Elastica_Exception_Abstract
{
/**
* Response
*
* @var Elastica_Response Response object
*/
protected $_response = null;
/**
* Construct Exception
*
* @param Elastica_Response $response
*/
public function __construct(Elastica_Response $response)
{
$this->_response = $response;
parent::__construct($response->getError());
}
/**
* Returns reponsce object
*
* @return Elastica_Response Response object
*/
public function getResponse()
{
return $this->_response;
}
}