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

Breadcrumb

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

function FlattenException::setTraceFromThrowable

Return value

$this

File

vendor/symfony/error-handler/Exception/FlattenException.php, line 294

Class

FlattenException
FlattenException wraps a PHP Error or Exception to be able to serialize it.

Namespace

Symfony\Component\ErrorHandler\Exception

Code

public function setTraceFromThrowable(\Throwable $throwable) : static {
    $this->traceAsString = $throwable->getTraceAsString();
    return $this->setTrace($throwable->getTrace(), $throwable->getFile(), $throwable->getLine());
}

API Navigation

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