function BigPipeTestController::exception

Same name in other branches
  1. 8.9.x core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php \Drupal\big_pipe_test\BigPipeTestController::exception()
  2. 10 core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php \Drupal\big_pipe_test\BigPipeTestController::exception()
  3. 11.x core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php \Drupal\big_pipe_test\BigPipeTestController::exception()

#lazy_builder callback; throws exception.

Throws

\Exception

File

core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php, line 119

Class

BigPipeTestController

Namespace

Drupal\big_pipe_test

Code

public static function exception() {
    throw new \Exception('You are not allowed to say llamas are not cool!');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.