123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Custom exception when a user attempts to move outside the project root
- *
- * @author Christopher Han <xiphux@gmail.com>
- * @copyright Copyright (c) 2012 Christopher Han
- * @package GitPHP
- * @subpackage Exception
- */
- class GitPHP_ProjectrootBoundException extends GitPHP_MessageException
- {
- /**
- * Path
- *
- * @var string
- */
- public $Path;
- /**
- * Constructor
- *
- * @param string $path path
- * @param string $message message
- * @param int $code exception code
- */
- public function __construct($path, $message = '', $code = 0)
- {
- $this->Path = $path;
- if (empty($message))
- $message = sprintf('%1$s is outside of the projectroot', $path);
- parent::__construct($message, true, 200, $code);
- }
- }
|