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
stringwrite() ¶ public
write(string $out): void
Write output to the renderer's output stream
Parameters
-
string$out The content to output.
Returns
void