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