-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a270ab
commit c6b2b80
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/GitElephant/Exception/InvalidRepositoryPathException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* User: matteo | ||
* Date: 02/06/13 | ||
* Time: 21.58 | ||
* Just for fun... | ||
*/ | ||
|
||
|
||
namespace GitElephant\Exception; | ||
|
||
/** | ||
* Class InvalidRepositoryPathException | ||
* | ||
* @package GitElephant\Exception | ||
*/ | ||
class InvalidRepositoryPathException extends \Exception | ||
{ | ||
protected $messageTpl = 'The path provided (%s) is not a valid git repository path'; | ||
|
||
/** | ||
* @param string $message repository path | ||
* @param int $code code | ||
* @param \Exception $previous previous | ||
*/ | ||
public function __construct($message = "", $code = 0, \Exception $previous = null) | ||
{ | ||
parent::__construct(sprintf($this->messageTpl, $message), $code, $previous); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters