class UserAbortException

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Command/Exception/UserAbortException.php \Drupal\Core\Command\Exception\UserAbortException

Thrown when a user declines an interactive console confirmation prompt.

Hierarchy

  • class \Drupal\Core\Command\Exception\UserAbortException extends \Drupal\Core\Command\Exception\RuntimeException

Expanded class hierarchy of UserAbortException

4 files declare their use of UserAbortException
ExtensionInstallCommand.php in core/modules/system/src/Command/ExtensionInstallCommand.php
ExtensionInstallCommand.php in core/lib/Drupal/Core/Extension/Command/ExtensionInstallCommand.php
ExtensionInstallCommandTest.php in core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php
ExtensionInstallCommandTest.php in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionInstallCommandTest.php

File

core/lib/Drupal/Core/Command/Exception/UserAbortException.php, line 10

Namespace

Drupal\Core\Command\Exception
View source
class UserAbortException extends \RuntimeException {
  public function __construct(string $message = 'Operation cancelled by user.', int $code = 0, ?\Throwable $previous = NULL) {
    parent::__construct($message, $code, $previous);
  }

}

Members

Title Sort descending Modifiers Object type Summary
UserAbortException::__construct public function

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