Plain text exception rendering with a stack trace.
Useful in CI or plain text environments.
Constructor.
Render an exception into a plain text message.
Render an individual exception
Write output to the output stream
__construct(Throwable $error, Psr\Http\Message\ServerRequestInterface|null $request, array $config)
Constructor.
Throwable $error The error to render.
Psr\Http\Message\ServerRequestInterface|null $request Not used.
array $config Error handling configuration.
render(): Psr\Http\Message\ResponseInterface|string
Render an exception into a plain text message.
Psr\Http\Message\ResponseInterface|stringrenderException(Throwable $exception, int $index): array
Render an individual exception
Throwable $exception The exception to render.
int $index Exception index in the chain
arraywrite(string $output): void
Write output to the output stream
string $output The output to print.
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.ConsoleExceptionRenderer.html