Modernize Git to upstream GitRepos, mainly command handling.
[phpgit.git] / library / Git / Exception.php
blob74fa29f35be70cadaa95daeabd170cb52559ffb8
1 <?php
3 class Git_Exception extends Exception
8 class Git_Exception_InvalidRepository extends Git_Exception
10 public function __construct($path) {
11 parent::__construct("Git repository $path does not exist");
15 class Git_Exception_Command extends Git_Exception
17 public function __construct($command, $status, $stderr) {
18 parent::__construct("Command `$command` returned error code [$status] with message \"$stderr\"");