Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\VarDumper\Exception; Chris@0: Chris@0: /** Chris@0: * @author Nicolas Grekas
Chris@0: */ Chris@0: class ThrowingCasterException extends \Exception Chris@0: { Chris@0: /** Chris@0: * @param \Exception $prev The exception thrown from the caster Chris@0: */ Chris@0: public function __construct(\Exception $prev) Chris@0: { Chris@17: parent::__construct('Unexpected '.\get_class($prev).' thrown from a caster: '.$prev->getMessage(), 0, $prev); Chris@0: } Chris@0: }