Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThrowingCasterException.php

function ThrowingCasterException::__construct

Parameters

\Throwable $prev The exception thrown from the caster:

File

vendor/symfony/var-dumper/Exception/ThrowingCasterException.php, line 22

Class

ThrowingCasterException
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper\Exception

Code

public function __construct(\Throwable $prev) {
    parent::__construct('Unexpected ' . $prev::class . ' thrown from a caster: ' . $prev->getMessage(), 0, $prev);
}
RSS feed
Powered by Drupal