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

Method Summary

Method Detail

__construct() public

__construct(\Throwable $exception)

Simply rethrow the given exception

Parameters

\Throwable $exception

Exception.

Throws

Throwable
$exception Rethrows the passed exception.

© 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.1/class-Cake.TestSuite.Stub.TestExceptionRenderer.html