| 1 | <?php |
||
| 19 | class RuntimeException extends \RuntimeException |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Client instance id that threw the exception |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $instance; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create new instance |
||
| 30 | * |
||
| 31 | * @param string $instance Client instance that threw the exception |
||
| 32 | * @param string|null $message Exception message |
||
| 33 | * @param Exception|null $previous Previous Exception |
||
| 34 | */ |
||
| 35 | 10 | public function __construct($instance, $message = '', Exception $previous = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get instance name that threw the exception |
||
| 43 | * |
||
| 44 | * @return string Instance name |
||
| 45 | */ |
||
| 46 | 2 | public function getInstance() |
|
| 50 | } |
||
| 51 |