Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommandNotFoundException.php

function CommandNotFoundException::__construct

Parameters

string $message Exception message to throw:

string[] $alternatives List of similar defined names:

int $code Exception code:

\Throwable|null $previous Previous exception used for the exception chaining:

File

vendor/symfony/console/Exception/CommandNotFoundException.php, line 27

Class

CommandNotFoundException
Represents an incorrect command name typed in the console.

Namespace

Symfony\Component\Console\Exception

Code

public function __construct(string $message, array $alternatives = [], int $code = 0, ?\Throwable $previous = null) {
    parent::__construct($message, $code, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal