1: <?php
2:
3: namespace ShippoClient\Http\Response\Exception;
4:
5: class BadResponseException extends \Exception
6: {
7: private $statusCode;
8: private $request;
9: private $response;
10:
11: 12: 13: 14: 15: 16:
17: public function __construct($message, $statusCode, $request, $response)
18: {
19: parent::__construct($message);
20: $this->statusCode = $statusCode;
21: $this->request = $request;
22: $this->response = $response;
23: }
24:
25: public function getStatusCode()
26: {
27: return $this->statusCode;
28: }
29:
30: public function getRequest()
31: {
32: return $this->request;
33: }
34:
35: public function getResponse()
36: {
37: return $this->response;
38: }
39: }
40: