1: <?php
2: namespace Dropbox;
3:
4: /**
5: * Thrown when the the Dropbox server responds with an HTTP status code we didn't expect.
6: */
7: final class Exception_BadResponseCode extends Exception_BadResponse
8: {
9: /** @var int */
10: private $statusCode;
11:
12: /**
13: * @param string $message
14: * @param int $statusCode
15: *
16: * @internal
17: */
18: function __construct($message, $statusCode)
19: {
20: parent::__construct($message);
21: $this->statusCode = $statusCode;
22: }
23:
24: /**
25: * The HTTP status code returned by the Dropbox server.
26: *
27: * @return int
28: */
29: public function getStatusCode()
30: {
31: return $this->statusCode;
32: }
33: }
34: