* @copyright Copyright (c) 2012 Christopher Han * @package GitPHP * @subpackage Exception */ class GitPHP_AmbiguousHashException extends GitPHP_MessageException { /** * Hash * * @var string */ public $Hash; /** * Constructor * * @param string $hash hash * @param string $message message * @param integer $code exception code */ public function __construct($hash, $message = '', $code = 0) { $this->Hash = $hash; if (empty($message)) $message = sprintf('Ambiguous abbreviated hash %1$s', $hash); parent::__construct($message, true, 200, $code); } }