Fr3nch13/CakePHP Utilities

TextExceptionRenderer
in package

Plain text exception rendering with a stack trace.

Useful in CI or plain text environments.

Tags
todo

5.0 Implement \Cake\Error\ExceptionRendererInterface. This implementation can't implement the concrete interface because the return types are not compatible.

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

Methods

__construct()

Constructor.

public __construct(Throwable $error) : mixed
Parameters
$error : Throwable

The error to render.

write()

Write output to stdout.

public write(string $output) : void
Parameters
$output : string

The output to print.


        
On this page

Search results