| 1 | <?php |
||
| 8 | class RuntimeException extends \RuntimeException |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Client instance that threw the exception |
||
| 12 | * |
||
| 13 | * @var Client |
||
| 14 | */ |
||
| 15 | protected $instance; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create new instance |
||
| 19 | * |
||
| 20 | * @param Client $instance Client instance that threw the exception |
||
| 21 | * @param string|null $message Exception message |
||
| 22 | * @param Exception|null $previous Previous Exception |
||
| 23 | */ |
||
| 24 | 5 | public function __construct(Client $instance, $message = '', Exception $previous = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get Client instance that threw the exception |
||
| 32 | * |
||
| 33 | * @return Client Client instance |
||
| 34 | */ |
||
| 35 | 2 | public function getInstance() |
|
| 39 | } |
||
| 40 |