You are here

public static function BigPipeTestController::exception in Drupal 8

Same name and namespace in other branches
  1. 9 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!');
}