ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Whoops\Exception\Formatter Class Reference
+ Collaboration diagram for Whoops\Exception\Formatter:

Static Public Member Functions

static formatExceptionPlain (Inspector $inspector)
 

Detailed Description

Member Function Documentation

◆ formatExceptionPlain()

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

Definition at line 49 of file Formatter.php.

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 }
getFrames()
Returns an iterator for the inspected exception's frames.
Definition: Inspector.php:125
$i
Definition: disco.tpl.php:19
catch(Exception $e) $message

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

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

+ 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: