~ubuntu-branches/debian/jessie/bzr-git/jessie

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-10-11 11:35:52 UTC
  • mfrom: (1.1.12 upstream) (8.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20101011113552-4ckvgh3ki33twlxi
* New upstream snapshot.
 + Fixes compatibility with Bazaar 2.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    """The base-level exception for bzr-git errors."""
28
28
 
29
29
 
30
 
class GitCommandError(BzrGitError):
31
 
    """Raised when spawning 'git' does not return normally."""
32
 
 
33
 
    _fmt = 'Command failed (%(returncode)s): command %(command)s\n%(stderr)s'
34
 
 
35
 
    def __init__(self, command, returncode, stderr):
36
 
        self.command = command
37
 
        self.returncode = returncode
38
 
        self.stderr = stderr
39
 
 
40
 
 
41
30
class NoSuchRef(BzrGitError):
42
31
    """Raised when a ref can not be found."""
43
32