diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-10-18 09:31:31 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-10-18 09:31:31 +0200 |
commit | 80f7dc77d430774192b929d780f96260066df2ee (patch) | |
tree | 102eaae7fc9ec567f2af76e96da3de2d1e83afcf /vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php | |
parent | cccd7bb4d819334c07e0dadaf16cbfdef31880e1 (diff) |
Update to MediaWiki 1.25.3
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php b/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php deleted file mode 100644 index 0ca331c7..00000000 --- a/vendor/ruflin/elastica/lib/Elastica/Exception/Connection/ThriftException.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php - -namespace Elastica\Exception\Connection; - -use Elastica\Exception\ConnectionException; -use Elastica\Request; -use Elastica\Response; -use Thrift\Exception\TException; - -/** - * Transport exception - * - * @category Xodoa - * @package Elastica - * @author Mikhail Shamin <munk13@gmail.com> - */ -class ThriftException extends ConnectionException -{ - /** - * @var TException - */ - protected $_thriftException; - - /** - * @param \Thrift\Exception\TException $thriftException - * @param \Elastica\Request $request - * @param \Elastica\Response $response - */ - public function __construct(TException $thriftException, Request $request = null, Response $response = null) - { - $this->_thriftException = $thriftException; - $message = $this->getErrorMessage($this->getThriftException()); - parent::__construct($message, $request, $response); - } - - /** - * @param \Thrift\Exception\TException $thriftException - * @return string - */ - public function getErrorMessage(TException $thriftException) - { - return $thriftException->getMessage(); - } - /** - * @return TException - */ - public function getThriftException() - { - return $this->_thriftException; - } -} |