ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Whoops\Exception\Formatter Class Reference
+ Collaboration diagram for Whoops\Exception\Formatter:

Static Public Member Functions

static formatExceptionPlain (Inspector $inspector)
 

Detailed Description

Definition at line 9 of file Formatter.php.

Member Function Documentation

◆ formatExceptionPlain()

static Whoops\Exception\Formatter::formatExceptionPlain ( Inspector  $inspector)
static
Examples:
/usr/local/src/ilias/release_5-4/libs/composer/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php.

Definition at line 49 of file Formatter.php.

References $i, $message, Whoops\Exception\Inspector\getException(), Whoops\Exception\Inspector\getExceptionName(), and Whoops\Exception\Inspector\getFrames().

Referenced by Whoops\Handler\PrettyPageHandler\handle().

50  {
51  $message = $inspector->getException()->getMessage();
52  $frames = $inspector->getFrames();
53 
54  $plain = $inspector->getExceptionName();
55  $plain .= ' thrown with message "';
56  $plain .= $message;
57  $plain .= '"'."\n\n";
58 
59  $plain .= "Stacktrace:\n";
60  foreach ($frames as $i => $frame) {
61  $plain .= "#". (count($frames) - $i - 1). " ";
62  $plain .= $frame->getClass() ?: '';
63  $plain .= $frame->getClass() && $frame->getFunction() ? ":" : "";
64  $plain .= $frame->getFunction() ?: '';
65  $plain .= ' in ';
66  $plain .= ($frame->getFile() ?: '<#unknown>');
67  $plain .= ':';
68  $plain .= (int) $frame->getLine(). "\n";
69  }
70 
71  return $plain;
72  }
catch(Exception $e) $message
$i
Definition: disco.tpl.php:19
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: