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

Breadcrumb

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

function RunCommandFailedException::__construct

File

vendor/symfony/console/Exception/RunCommandFailedException.php, line 21

Class

RunCommandFailedException
@author Kevin Bond <kevinbond@gmail.com>

Namespace

Symfony\Component\Console\Exception

Code

public function __construct(\Throwable|string $exception, RunCommandContext $context) {
    parent::__construct($exception instanceof \Throwable ? $exception->getMessage() : $exception, $exception instanceof \Throwable ? $exception->getCode() : 0, $exception instanceof \Throwable ? $exception : null);
}

API Navigation

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