diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:31:33 -0400 |
commit | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (patch) | |
tree | 181f454813b310ee97385058c6c6f2e3f34d5fd8 /vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php | |
parent | 7e85254903c7c0cb49e381f16b18441ea7b058cc (diff) | |
parent | 80f7dc77d430774192b929d780f96260066df2ee (diff) |
Merge commit '80f7dc'
# Conflicts:
# extensions/ArchInterWiki.sql
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php b/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php deleted file mode 100644 index 645c0eff..00000000 --- a/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/GuzzleException.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php - -namespace Elastica\Exception\Connection; - -use Elastica\Exception\ConnectionException; -use Elastica\Request; -use Elastica\Response; -use GuzzleHttp\Exception\TransferException; - -/** - * Transport exception - * - * @package Elastica - * @author Milan Magudia <milan@magudia.com> - */ -class GuzzleException extends ConnectionException -{ - /** - * @var TransferException - */ - protected $_guzzleException; - - /** - * @param \GuzzleHttp\Exception\TransferException $guzzleException - * @param \Elastica\Request $request - * @param \Elastica\Response $response - */ - public function __construct(TransferException $guzzleException, Request $request = null, Response $response = null) - { - $this->_guzzleException = $guzzleException; - $message = $this->getErrorMessage($this->getGuzzleException()); - parent::__construct($message, $request, $response); - } - - /** - * @param \GuzzleHttp\Exception\TransferException $guzzleException - * @return string - */ - public function getErrorMessage(TransferException $guzzleException) - { - return $guzzleException->getMessage(); - } - - /** - * @return TransferException - */ - public function getGuzzleException() - { - return $this->_guzzleException; - } -} |