* @category TQ * @package TQ_Git * @subpackage Cli * @copyright Copyright (C) 2011 by TEQneers GmbH & Co. KG */ class CallException extends \RuntimeException implements Exception { /** * The call result that caused the exception * * @var CallResult */ protected $cliCallResult; /** * Creates a new exception * * @param string $message The exception message * @param CallResult $cliCallResult The call result that caused the exception */ public function __construct($message, CallResult $cliCallResult) { $this->cliCallResult = $cliCallResult; parent::__construct( sprintf($message.' [%s]', $cliCallResult->getStdErr()), $cliCallResult->getReturnCode() ); } }