~ubuntu-branches/ubuntu/saucy/migrate/saucy-proposed

« back to all changes in this revision

Viewing changes to migrate/versioning/exceptions.py

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner
  • Date: 2010-07-12 00:24:57 UTC
  • mfrom: (1.1.5 upstream) (2.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100712002457-4j2fdmco4u9kqzm5
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
class Error(Exception):
7
7
    """Error base class."""
8
 
    pass
9
8
 
10
9
 
11
10
class ApiError(Error):
12
11
    """Base class for API errors."""
13
 
    pass
14
12
 
15
13
 
16
14
class KnownError(ApiError):
23
21
 
24
22
class ControlledSchemaError(Error):
25
23
    """Base class for controlled schema errors."""
26
 
    pass
27
24
 
28
25
 
29
26
class InvalidVersionError(ControlledSchemaError):
44
41
 
45
42
class NoSuchTableError(ControlledSchemaError):
46
43
    """The table does not exist."""
47
 
    pass
48
44
 
49
45
 
50
46
class PathError(Error):
51
47
    """Base class for path errors."""
52
 
    pass
53
48
 
54
49
 
55
50
class PathNotFoundError(PathError):
56
51
    """A path with no file was required; found a file."""
57
 
    pass
58
52
 
59
53
 
60
54
class PathFoundError(PathError):
61
55
    """A path with a file was required; found no file."""
62
 
    pass
63
56
 
64
57
 
65
58
class RepositoryError(Error):
66
59
    """Base class for repository errors."""
67
 
    pass
68
60
 
69
61
 
70
62
class InvalidRepositoryError(RepositoryError):
71
63
    """Invalid repository error."""
72
 
    pass
73
64
 
74
65
 
75
66
class ScriptError(Error):
76
67
    """Base class for script errors."""
77
 
    pass
78
68
 
79
69
 
80
70
class InvalidScriptError(ScriptError):
81
71
    """Invalid script error."""
82
 
    pass
83
72
 
84
73
 
85
74
class InvalidVersionError(Error):
86
75
    """Invalid version error."""
87
 
    pass