Browse Source

Merge "Add some exception classes"

changes/42/100742/1
Jenkins 5 years ago
parent
commit
29047192a5
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      entropy/exceptions.py

+ 13
- 0
entropy/exceptions.py View File

@@ -33,3 +33,16 @@ class EngineStoppedException(EntropyException):
33 33
     """Exception raised when engine is shutdown."""
34 34
     def __init__(self, message):
35 35
         super(EngineStoppedException, self).__init__(message)
36
+
37
+
38
+class 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
+
45
+class NoEnginesException(EntropyException):
46
+    """Exception raised when there are no known engines."""
47
+    def __init__(self, message):
48
+        super(NoEnginesException, self).__init__(message)

Loading…
Cancel
Save