On this page
Class TextExceptionRenderer
Plain text exception rendering with a stack trace.
Useful in CI or plain text environments.
Namespace: Cake\Error\Renderer
Method Summary
__construct() public
Constructor.
render() public
Render an exception into a plain text message.
write() public
Write output to stdout.
Method Detail
__construct() public
__construct(Throwable $error)
Constructor.
Parameters
Throwable
$error-
The error to render.
render() public
render(): Psr\Http\Message\ResponseInterface|string
Render an exception into a plain text message.
Returns
Psr\Http\Message\ResponseInterface|string
write() public
write(string $output): void
Write output to stdout.
Parameters
string
$output-
The output to print.
Returns
void
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Error.Renderer.TextExceptionRenderer.html