summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php')
-rw-r--r--Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php b/Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php
deleted file mode 100644
index cdce14b..0000000
--- a/Postman/Postman-Mail/mailgun/vendor/php-http/httplug/src/Exception/RequestException.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-namespace Http\Client\Exception;
-
-use Psr\Http\Message\RequestInterface;
-
-/**
- * Exception for when a request failed, providing access to the failed request.
- *
- * This could be due to an invalid request, or one of the extending exceptions
- * for network errors or HTTP error responses.
- *
- * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
- */
-class RequestException extends TransferException
-{
- /**
- * @var RequestInterface
- */
- private $request;
-
- /**
- * @param string $message
- * @param RequestInterface $request
- * @param \Exception|null $previous
- */
- public function __construct($message, RequestInterface $request, \Exception $previous = null)
- {
- $this->request = $request;
-
- parent::__construct($message, 0, $previous);
- }
-
- /**
- * Returns the request.
- *
- * @return RequestInterface
- */
- public function getRequest()
- {
- return $this->request;
- }
-}