protected function TestControllers::throwException in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/router_test_directory/src/TestControllers.php \Drupal\router_test\TestControllers::throwException()
Throws an exception.
Parameters
string $message: The message to use in the exception.
Throws
\Exception Always thrown.
1 call to TestControllers::throwException()
- TestControllers::test10 in core/
modules/ system/ tests/ modules/ router_test_directory/ src/ TestControllers.php - Test controller for ExceptionHandlingTest::testBacktraceEscaping().
File
- core/
modules/ system/ tests/ modules/ router_test_directory/ src/ TestControllers.php, line 118 - Contains \Drupal\router_test\TestControllers.
Class
- TestControllers
- Controller routines for testing the routing system.
Namespace
Drupal\router_testCode
protected function throwException($message) {
throw new \Exception($message);
}