You are here

public function ThrowException::execute in Commerce Core 8.2

Executes the plugin.

Overrides ExecutableInterface::execute

File

tests/modules/commerce_test/src/Plugin/Action/ThrowException.php, line 31

Class

ThrowException
Throws an exception.

Namespace

Drupal\commerce_test\Plugin\Action

Code

public function execute() {
  throw new \Exception("Test exception action.");
}