src/Helper/Shell/ShellHelper.php
protected function processError($output, $exceptionOnError = true, $exceptionClass = ShellException::class)
    {
        if ($exceptionOnError && $this->hadError()) {
            $exceptionClass = $exceptionClass ?: ShellException::class;
            throw new $exceptionClass($output);
        }

        return $this;
    }
protected function processError($output, $exceptionOnError = true, $exceptionClass = ShellException::class)
    {
        if ($exceptionOnError && $this->hadError()) {
            $exceptionClass = $exceptionClass ?: ShellException::class;
            throw new $exceptionClass($output);
        }

        return $this;
    }
protected function processError ( $ output , $ exceptionOnError = true , $ exceptionClass = ShellException :: class ) { if ( $ exceptionOnError && $ this -> hadError ( ) ) { $ exceptionClass = $ exceptionClass ? : ShellException :: class ; throw new $ exceptionClass ( $ output ) ; } return $ this ; }
Process error in output

@param string $output
@param bool   $exceptionOnError
@param string $exceptionClass
@return $this
Process error in output