14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18
"""A grouping of Exceptions for bzr-git"""
19
21
from dulwich import errors as git_errors
21
23
from bzrlib import errors as bzr_errors
23
26
class BzrGitError(bzr_errors.BzrError):
24
27
"""The base-level exception for bzr-git errors."""
32
def __init__(self, command, returncode, stderr):
38
30
class NoSuchRef(BzrGitError):
41
33
_fmt = "The ref %(ref)s was not found."
43
35
def __init__(self, ref, present_refs=None):
45
37
self.present_refs = present_refs