| 1 |
<?php |
| 2 |
|
| 3 |
namespace OpenSpout\Reader\Exception; |
| 4 |
|
| 5 |
use Throwable; |
| 6 |
|
| 7 |
class InvalidValueException extends ReaderException |
| 8 |
{ |
| 9 |
/** @var mixed */ |
| 10 |
private $invalidValue; |
| 11 |
|
| 12 |
/** |
| 13 |
* @param mixed $invalidValue |
| 14 |
* @param string $message |
| 15 |
* @param int $code |
| 16 |
*/ |
| 17 |
public function __construct($invalidValue, $message = '', $code = 0, Throwable $previous = null) |
| 18 |
{ |
| 19 |
$this->invalidValue = $invalidValue; |
| 20 |
parent::__construct($message, $code, $previous); |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* @return mixed |
| 25 |
*/ |
| 26 |
public function getInvalidValue() |
| 27 |
{ |
| 28 |
return $this->invalidValue; |
| 29 |
} |
| 30 |
} |
| 31 |
|