public function __construct($command, Exception $cause = null) { $this->command = $command; parent::__construct(sprintf('Execution of %s failed.', var_export($command, true)), 0, $cause); }