StackTraceFormatter
in package
FinalYes
Tags
Table of Contents
Methods
- format() : string
- Formats an exception in a java-like format.
- __construct() : mixed
- formatName() : string
- frames() : array<string|int, mixed>
- 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) : array<string|int, mixed>
Parameters
- $e : Throwable
Tags
Return values
array<string|int, mixed>writeFrames()
private
static writeFrames(string &$s, array<string|int, mixed> $frames, array<string|int, mixed>|null $enclosing) : void
Parameters
- $s : string
- $frames : array<string|int, mixed>
- $enclosing : array<string|int, mixed>|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