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.
Simply rethrow the given exception
Render the exception to a string or Http Response.
Part of upcoming interface requirements
__construct(Throwable $exception): void
Simply rethrow the given exception
Throwable
$exception Exception.
void
Throwable
render(): ResponseInterface
Render the exception to a string or Http Response.
ResponseInterface
write(Psr\Http\Message\ResponseInterface|string $output): void
Part of upcoming interface requirements
Psr\Http\Message\ResponseInterface|string
$output The output or response to send.
void
© 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.4/class-Cake.TestSuite.Stub.TestExceptionRenderer.html