class 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

2 files declare their use of UserAbortException
ExtensionInstallCommand.php in core/modules/system/src/Command/ExtensionInstallCommand.php
ExtensionInstallCommandTest.php in core/modules/system/tests/src/Kernel/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);
  }

}

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