equal
deleted
inserted
replaced
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """Exceptions shared by different cubicweb packages.""" |
18 """Exceptions shared by different cubicweb packages.""" |
19 |
19 |
20 |
20 |
21 from logilab.common.decorators import cachedproperty |
21 from logilab.common.decorators import cachedproperty |
|
22 from logilab.common.registry import RegistryException |
22 |
23 |
23 from yams import ValidationError # noqa: F401 |
24 from yams import ValidationError # noqa: F401 |
24 |
25 |
25 # abstract exceptions ######################################################### |
26 # abstract exceptions ######################################################### |
26 |
27 |
146 msg = 'No entity with eid %s in %s' |
147 msg = 'No entity with eid %s in %s' |
147 |
148 |
148 |
149 |
149 # registry exceptions ######################################################### |
150 # registry exceptions ######################################################### |
150 |
151 |
151 # pre 3.15 bw compat |
|
152 from logilab.common.registry import RegistryException, ObjectNotFound, NoSelectableObject |
|
153 |
|
154 |
|
155 class UnknownProperty(RegistryException): |
152 class UnknownProperty(RegistryException): |
156 """property found in database but unknown in registry""" |
153 """property found in database but unknown in registry""" |
157 |
154 |
158 # query exception ############################################################# |
155 # query exception ############################################################# |
159 |
156 |
214 class ExecutionError(Exception): |
211 class ExecutionError(Exception): |
215 """server execution control error (already started, not running...)""" |
212 """server execution control error (already started, not running...)""" |
216 |
213 |
217 |
214 |
218 # pylint: disable=W0611 |
215 # pylint: disable=W0611 |
219 from logilab.common.clcommands import BadCommandUsage |
216 from logilab.common.clcommands import BadCommandUsage # noqa: E402, F401 |