123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Custom exception when a project list file cannot be read
- *
- * @author Christopher Han <xiphux@gmail.com>
- * @copyright Copyright (c) 2012 Christopher Han
- * @package GitPHP
- * @subpackage Exception
- */
- class GitPHP_ProjectListFileReadException extends GitPHP_MessageException
- {
- /**
- * File
- *
- * @var string
- */
- public $File;
- /**
- * Constructor
- *
- * @param string $file file
- * @param string $message message
- * @param int $code exception code
- */
- public function __construct($file, $message = '', $code = 0)
- {
- $this->File = $file;
- if (empty($message))
- $message = sprintf('Failed to open project list file %1$s', $file);
- parent::__construct($message, true, 500, $code);
- }
- }
|