W3cubDocs

/CakePHP 4.4

Interface ErrorRendererInterface

Interface for PHP error rendering implementations

The core provided implementations of this interface are used by Debugger and ErrorTrap to render PHP errors.

Namespace: Cake\Error

Method Summary

  • render() public

    Render output for the provided error.

  • write() public

    Write output to the renderer's output stream

Method Detail

render() public

render(Cake\Error\PhpError $error, bool $debug): string

Render output for the provided error.

Parameters

Cake\Error\PhpError $error

The error to be rendered.

bool $debug

Whether or not the application is in debug mode.

Returns

string

write() public

write(string $out): void

Write output to the renderer's output stream

Parameters

string $out

The content to output.

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/interface-Cake.Error.ErrorRendererInterface.html