equal
deleted
inserted
replaced
73 """raised when a bad connection id is given""" |
73 """raised when a bad connection id is given""" |
74 |
74 |
75 class UnknownEid(RepositoryError): |
75 class UnknownEid(RepositoryError): |
76 """the eid is not defined in the system tables""" |
76 """the eid is not defined in the system tables""" |
77 msg = 'No entity with eid %s in the repository' |
77 msg = 'No entity with eid %s in the repository' |
78 |
|
79 class ETypeNotSupportedBySources(RepositoryError, InternalError): |
|
80 """no source support an entity type""" |
|
81 msg = 'No source supports %r entity\'s type' |
|
82 |
|
83 class MultiSourcesError(RepositoryError, InternalError): |
|
84 """usually due to bad multisources configuration or rql query""" |
|
85 |
78 |
86 class UniqueTogetherError(RepositoryError): |
79 class UniqueTogetherError(RepositoryError): |
87 """raised when a unique_together constraint caused an IntegrityError""" |
80 """raised when a unique_together constraint caused an IntegrityError""" |
88 def __init__(self, session, **kwargs): |
81 def __init__(self, session, **kwargs): |
89 self.session = session |
82 self.session = session |