summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-06-16 23:39:40 +0000
committerGerrit Code Review <review@openstack.org>2014-06-16 23:39:40 +0000
commit29047192a5d11242869e3d9c3875e56ea5f73f65 (patch)
tree9e7c55b4ab24b0e3fbe857c6f276a770fe92b00c
parent473e2febc05ce651b9b0ceaa35140fb334854d41 (diff)
parenta1fdc66e4e9e81454be664f2fb9e11e3bf1a31bd (diff)
Merge "Add some exception classes"
-rw-r--r--entropy/exceptions.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/entropy/exceptions.py b/entropy/exceptions.py
index 7797784..459385d 100644
--- a/entropy/exceptions.py
+++ b/entropy/exceptions.py
@@ -33,3 +33,16 @@ class EngineStoppedException(EntropyException):
33 """Exception raised when engine is shutdown.""" 33 """Exception raised when engine is shutdown."""
34 def __init__(self, message): 34 def __init__(self, message):
35 super(EngineStoppedException, self).__init__(message) 35 super(EngineStoppedException, self).__init__(message)
36
37
38class NoSuchEngineException(EntropyException):
39 """Exception raised when performing operations on a non-existent engine.
40 """
41 def __init__(self, message):
42 super(NoSuchEngineException, self).__init__(message)
43
44
45class NoEnginesException(EntropyException):
46 """Exception raised when there are no known engines."""
47 def __init__(self, message):
48 super(NoEnginesException, self).__init__(message)