]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - svn2svn/errors.py
Copy shared hgsvn code: https://bitbucket.org/andialbrecht/hgsvn @ 528dea531a2e
[svn2svn.git] / svn2svn / errors.py
1
2 """
3 Exception sub-hierarchy:
4
5 RuntimeError
6 +-- ExternalCommandFailed
7 +-- CommitCancelled
8 +-- HgSVNError
9 +-- UnsupportedSVNFeature
10 | +-- OverwrittenSVNBranch
11 | +-- UnsupportedSVNAction
12 +-- SVNOutputError
13 +-- EmptySVNLog
14
15 """
16
17 class ExternalCommandFailed(RuntimeError):
18 """
19 An external command failed.
20 """
21
22 class HgSVNError(RuntimeError):
23 """
24 A generic hgsvn error.
25 """
26
27 class UnsupportedSVNFeature(HgSVNError):
28 """
29 An unsuppported SVN (mis)feature.
30 """
31
32 class OverwrittenSVNBranch(UnsupportedSVNFeature):
33 """
34 The current SVN branch was overwritten with another one.
35 """
36
37 class UnsupportedSVNAction(UnsupportedSVNFeature):
38 """
39 An unknown/unsupported SVN action in an SVN log entry.
40 """
41
42 class SVNOutputError(HgSVNError):
43 """
44 A generic error with the output of an SVN command.
45 """
46
47 class EmptySVNLog(SVNOutputError):
48 """
49 An empty SVN log entry.
50 """