function error_test_trigger_exception
7.x error_test.module | error_test_trigger_exception() |
Menu callback; trigger an exception to test the exception handler.
1 string reference to 'error_test_trigger_exception'
- error_test_menu in drupal-7.x/
modules/ simpletest/ tests/ error_test.module - Implements hook_menu().
File
- drupal-7.x/
modules/ simpletest/ tests/ error_test.module, line 54
Code
function error_test_trigger_exception() {
define('SIMPLETEST_COLLECT_ERRORS', FALSE);
throw new Exception("Drupal is awesome");
}