| 1 | <?php |
||
| 8 | class BadRequest extends Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The dropbox error code supplied in the response |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $dropboxCode = ''; |
||
| 16 | |||
| 17 | public function __construct(ResponseInterface $response) |
||
| 27 | |||
| 28 | protected function setDropboxCode(string $code) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the machine readable dropbox error code |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getDropboxCode(): string |
||
| 42 | } |
||
| 43 |