Class ConsoleErrorRenderer
Plain text error rendering with a stack trace.
Writes to STDERR via a Cake\Console\ConsoleOutput instance for console environments
Namespace: Cake\Error\Renderer
Method Summary
-
__construct() public
Constructor.
-
render() public
Render output for the provided error.
-
write() public
Write output to the renderer's output stream
Method Detail
__construct() ¶ public
__construct(array $config)
Constructor.
Options
stderr- The ConsoleOutput instance to use. Defaults tophp://stderrtrace- Whether or not stacktraces should be output.
Parameters
-
array$config Error handling configuration.
render() ¶ public
render(Cake\Error\PhpError $error, bool $debug): string
Render output for the provided error.
Parameters
-
Cake\Error\PhpError$error -
bool$debug
Returns
stringwrite() ¶ public
write(string $out): void
Write output to the renderer's output stream
Parameters
-
string$out
Returns
void