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

Breadcrumb

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

function ThrowableBuilder::from

Throws

Exception

NoPreviousThrowableException

2 calls to ThrowableBuilder::from()
AbstractPhpProcess::processChildResult in vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php
PhptTestCase::run in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php
Runs a test and collects its result in a TestResult instance.

File

vendor/phpunit/phpunit/src/Event/Value/ThrowableBuilder.php, line 28

Class

ThrowableBuilder
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Event\Code

Code

public static function from(\Throwable $t) : Throwable {
    $previous = $t->getPrevious();
    if ($previous !== null) {
        $previous = self::from($previous);
    }
    return new Throwable($t::class, $t->getMessage(), ThrowableToStringMapper::map($t), Filter::getFilteredStacktrace($t, false), $previous);
}

API Navigation

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