for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pastuhov\Command;
class CommandException extends \RuntimeException
{
protected $command;
protected $output;
protected $returnCode;
public function __construct($command, $output, $returnCode)
$this->command = $command;
$this->output = $output;
$this->returnCode = $returnCode;
$message = 'Command "' . $command. '" exited with code ' . $returnCode . ': ' . $output;
parent::__construct($message);
}
public function getCommand()
return $this->command;
public function getOutput()
return $this->output;
public function getReturnCode()
return $this->returnCode;