diff options
Diffstat (limited to 'vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php')
-rw-r--r-- | vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php b/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php new file mode 100644 index 0000000..5f4d2db --- /dev/null +++ b/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php @@ -0,0 +1,23 @@ +<?php + +namespace PayPalHttp; + +class HttpException extends IOException +{ + /** + * @var statusCode + */ + public $statusCode; + + public $headers; + + /** + * @param string $response + */ + public function __construct($message, $statusCode, $headers) + { + parent::__construct($message); + $this->statusCode = $statusCode; + $this->headers = $headers; + } +} |