Move TimeoutError to central exceptions file.
[python_utils.git] / exceptions.py
index 3ce94d365774422252ab591303907d31ff65d1ba..3e0a2d080b56742d71d1d02ee45ac13fd8d5a146 100644 (file)
@@ -9,5 +9,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)