public static function createFromProcess($message, Process $process)
    {
        return new static(
            \sprintf('%s [%s]', $message, $process->getCommandLine()) .
            PHP_EOL . \sprintf('work dir: %s', $process->getWorkingDirectory()) .
            PHP_EOL . $process->getErrorOutput(),
            $process->getWorkingDirectory(),
            $process->getCommandLine(),
            $process->getOutput(),
            $process->getErrorOutput()
        );
    }
public static function createFromProcess($message, Process $process)
    {
        return new static(
            \sprintf('%s [%s]', $message, $process->getCommandLine()) .
            PHP_EOL . \sprintf('work dir: %s', $process->getWorkingDirectory()) .
            PHP_EOL . $process->getErrorOutput(),
            $process->getWorkingDirectory(),
            $process->getCommandLine(),
            $process->getOutput(),
            $process->getErrorOutput()
        );
    }
public static function createFromProcess ( $ message , Process $ process ) { return new static ( \ sprintf ( '%s [%s]' , $ message , $ process -> getCommandLine ( ) ) . PHP_EOL . \ sprintf ( 'work dir: %s' , $ process -> getWorkingDirectory ( ) ) . PHP_EOL . $ process -> getErrorOutput ( ) , $ process -> getWorkingDirectory ( ) , $ process -> getCommandLine ( ) , $ process -> getOutput ( ) , $ process -> getErrorOutput ( ) ) ; }
Create new exception from process.

@param string  $message The message to use.

@param Process $process The process to create the message from.

@return static
Create new exception from process .