ACL uses enums, some more tests, other stuff.
[python_utils.git] / exceptions.py
index 3ce94d365774422252ab591303907d31ff65d1ba..59aa262d786a11297e1462ff782ed2e47034c16d 100644 (file)
@@ -1,5 +1,8 @@
 #!/usr/bin/env python3
 
+# This module is commonly used by others in here and should avoid
+# taking any unnecessary dependencies back on them.
+
 class PreconditionException(AssertionError):
     pass
 
@@ -9,5 +12,8 @@ class PostconditionException(AssertionError):
 
 
 class TimeoutError(Exception):
-    pass
+    def __init__(self, value: str = "Timed out"):
+        self.value = value
 
+    def __str__(self):
+        return repr(self.value)