* @license PHP License * @package WB * @subpackage base */ /** * exception: Exec * * Command execution failed * * @version 0.1.0 * @package WB * @subpackage base */ class WBException_Exec extends WBException { /** * set command * * * @param string $cmd * @param int $ret * @param array $out */ public function setCommand($cmd, $ret = -1, $out = null) { $this->message = sprintf('Command: "%s" failed, return code: %s', $cmd, $ret); if (!empty($out)) { $this->message .= "\nOutput:\n" . implode("\n", $out); } } } ?>