| 1 | <?php |
||
| 21 | class InvalidRenderTarget extends \InvalidArgumentException implements Exception |
||
| 22 | { |
||
| 23 | use AccessorTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var mixed |
||
| 27 | */ |
||
| 28 | private $target; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * InvalidRenderTarget constructor. |
||
| 32 | * |
||
| 33 | * @param mixed $target |
||
| 34 | * @param string $message |
||
| 35 | * @param int $code |
||
| 36 | * @param \Exception|null $previous |
||
| 37 | */ |
||
| 38 | public function __construct($target, $message = null, $code = 500, \Exception $previous = null) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Format exception message. |
||
| 47 | * |
||
| 48 | * @param mixed $target |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | protected function format_message($target) |
||
| 58 | } |
||
| 59 |