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

Breadcrumb

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

class ThrowingCasterException

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • class \Symfony\Component\VarDumper\Exception\ThrowingCasterException extends \Symfony\Component\VarDumper\Exception\Exception

Expanded class hierarchy of ThrowingCasterException

2 files declare their use of ThrowingCasterException
AbstractCloner.php in vendor/symfony/var-dumper/Cloner/AbstractCloner.php
ExceptionCaster.php in vendor/symfony/var-dumper/Caster/ExceptionCaster.php

File

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

Namespace

Symfony\Component\VarDumper\Exception
View source
class ThrowingCasterException extends \Exception {
    
    /**
     * @param \Throwable $prev The exception thrown from the caster
     */
    public function __construct(\Throwable $prev) {
        parent::__construct('Unexpected ' . $prev::class . ' thrown from a caster: ' . $prev->getMessage(), 0, $prev);
    }

}

Members

Title Sort descending Modifiers Object type Summary
ThrowingCasterException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal