2
from twisted.cred.error import UnauthorizedLogin
4
class BadCredentials(UnauthorizedLogin):
7
class NoSuchUser(UnauthorizedLogin):
10
class DuplicateUser(Exception):
13
class CannotOpenStore(RuntimeError):
15
There is a problem such that the store cannot be opened.
18
class NoUpgradePathAvailable(CannotOpenStore):
20
No upgrade path is available, so the store cannot be opened.
23
class NoCrossStoreReferences(AttributeError):
25
References are not allowed between items within different Stores.
28
class SQLError(RuntimeError):
30
Axiom internally generated some bad SQL.
32
def __init__(self, sql, args, underlying):
33
RuntimeError.__init__(self, sql, args, underlying)
34
self.sql, self.args, self.underlying = self.args
37
return "<SQLError: %r(%r) caused %s: %s>" % (
39
self.underlying.__class__, self.underlying)
43
class UnknownItemType(Exception):
45
Can't load an item: it's of a type that I don't see anywhere in Python.
50
class SQLWarning(Warning):
52
Axiom internally generated some CREATE TABLE SQL that ... probably wasn't bad
56
class TableCreationConcurrencyError(RuntimeError):
58
Woah, this is really bad. If you can get this please tell us how.
61
class DuplicateUniqueItem(KeyError):
63
Found 2 or more of an item which is supposed to be unique.
66
class ItemNotFound(KeyError):
68
Did not find even 1 of an item which was supposed to exist.