Class ConsoleExceptionRenderer
Plain text exception rendering with a stack trace.
Useful in CI or plain text environments.
        
    Namespace: Cake\Error\Renderer
    
    
    
      
  
  
        Method Summary
- 
          
__construct() public
Constructor.
 - 
          
render() public
Render an exception into a plain text message.
 - 
          
renderException() protected
Render an individual exception
 - 
          
write() public
Write output to the output stream
 
Method Detail
__construct() ¶ public
__construct(Throwable $error, Psr\Http\Message\ServerRequestInterface|null $request, array $config)
      Constructor.
Parameters
- 
                
Throwable$error The error to render.
- 
                
Psr\Http\Message\ServerRequestInterface|null$request Not used.
- 
                
array$config Error handling configuration.
render() ¶ public
render(): Psr\Http\Message\ResponseInterface|string
      Render an exception into a plain text message.
Returns
Psr\Http\Message\ResponseInterface|stringrenderException() ¶ protected
renderException(Throwable $exception, Throwable|null $parent): array
      Render an individual exception
Parameters
- 
                
Throwable$exception The exception to render.
- 
                
Throwable|null$parent The Exception index in the chain
Returns
arraywrite() ¶ public
write(Psr\Http\Message\ResponseInterface|string $output): void
      Write output to the output stream
This method is only called when exceptions are handled by a global default exception handler.
Parameters
- 
                
Psr\Http\Message\ResponseInterface|string$output The output to print.
Returns
void