Fr3nch13/CakePHP Utilities

ConsoleExceptionRenderer
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
$output  : ConsoleOutput
$trace  : bool

Methods

__construct()  : mixed
Constructor.
render()  : ResponseInterface|string
Render an exception into a plain text message.
write()  : void
Write output to the output stream
renderException()  : array<string|int, mixed>
Render an individual exception

Properties

Methods

write()

Write output to the output stream

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

The output to print.

renderException()

Render an individual exception

protected renderException(Throwable $exception, int $index) : array<string|int, mixed>
Parameters
$exception : Throwable

The exception to render.

$index : int

Exception index in the chain

Return values
array<string|int, mixed>

        
On this page

Search results