1 error_test.module error_test_trigger_exception()

Menu callback; trigger an exception to test the exception handler.

File

core/modules/simpletest/tests/error_test.module, line 58

Code

function error_test_trigger_exception() {
  define('SIMPLETEST_COLLECT_ERRORS', FALSE);
  throw new Exception("Backdrop is awesome");
}