ThrowingCasterException.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\VarDumper\Exception; |
| 12 | |
| 13 | /** |
| 14 | * @author Nicolas Grekas <p@tchwork.com> |
| 15 | */ |
| 16 | class ThrowingCasterException extends \Exception |
| 17 | { |
| 18 | /** |
| 19 | * @param \Throwable $prev The exception thrown from the caster |
| 20 | */ |
| 21 | public function __construct(\Throwable $prev) |
| 22 | { |
| 23 | parent::__construct('Unexpected ' . \get_class($prev) . ' thrown from a caster: ' . $prev->getMessage(), 0, $prev); |
| 24 | } |
| 25 | } |
| 26 |