TextExceptionRenderer
in package
Plain text exception rendering with a stack trace.
Useful in CI or plain text environments.
Tags
Table of Contents
Properties
- $error : Throwable
Methods
- __construct() : mixed
- Constructor.
- render() : ResponseInterface|string
- Render an exception into a plain text message.
- write() : void
- Write output to stdout.
Properties
$error
private
Throwable
$error
Methods
__construct()
Constructor.
public
__construct(Throwable $error) : mixed
Parameters
- $error : Throwable
-
The error to render.
render()
Render an exception into a plain text message.
public
render() : ResponseInterface|string
Return values
ResponseInterface|stringwrite()
Write output to stdout.
public
write(string $output) : void
Parameters
- $output : string
-
The output to print.