Class TestExceptionRenderer
Test Exception Renderer.
Use this class if you want to re-throw exceptions that would otherwise be caught by the ErrorHandlerMiddleware. This is useful while debugging or writing integration test cases.
        
    Namespace: Cake\TestSuite\Stub
See: \Cake\TestSuite\IntegrationTestCase::disableErrorHandlerMiddleware()
    
      
  
  
        See: \Cake\TestSuite\IntegrationTestCase::disableErrorHandlerMiddleware()
Method Summary
- 
          
__construct() public
Simply rethrow the given exception
 - 
          
render() public
Renders the response for the exception.
 - 
          
write() public
Part of upcoming interface requirements
 
Method Detail
__construct() ¶ public
__construct(Throwable $exception): void
      Simply rethrow the given exception
Parameters
- 
                
Throwable$exception Exception.
Returns
voidThrows
Throwable$exception Rethrows the passed exception.
render() ¶ public
render(): ResponseInterface
      Renders the response for the exception.
Returns
ResponseInterfacewrite() ¶ public
write(Psr\Http\Message\ResponseInterface|string $output): void
      Part of upcoming interface requirements
This method is only called when exceptions are handled by a global default exception handler.
Parameters
- 
                
Psr\Http\Message\ResponseInterface|string$output The output or response to send.
Returns
void