StackTraceFormatter
in package
FinalYes
Tags
Table of Contents
Methods
- format() : string
- Formats an exception in a java-like format.
- __construct() : mixed
- formatName() : string
- frames() : Frames
- writeFrames() : void
- writeInlineHeader() : void
- writeNewline() : void
Methods
format()
Formats an exception in a java-like format.
public
static format(Throwable $e) : string
Parameters
- $e : Throwable
-
exception to format
Tags
Return values
string —formatted exception
__construct()
private
__construct() : mixed
formatName()
private
static formatName(string $name) : string
Parameters
- $name : string
Return values
stringframes()
private
static frames(Throwable $e) : Frames
Parameters
- $e : Throwable
Tags
Return values
FrameswriteFrames()
private
static writeFrames(string &$s, Frames $frames, Frames|null $enclosing) : void
Parameters
- $s : string
- $frames : Frames
- $enclosing : Frames|null
Tags
writeInlineHeader()
private
static writeInlineHeader(string &$s, Throwable $e) : void
Parameters
- $s : string
- $e : Throwable
writeNewline()
private
static writeNewline(string &$s[, int $indent = 0 ]) : void
Parameters
- $s : string
- $indent : int = 0