diff options
Diffstat (limited to 'exceptions.py')
| -rw-r--r-- | exceptions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/exceptions.py b/exceptions.py index 3ce94d3..3e0a2d0 100644 --- a/exceptions.py +++ b/exceptions.py @@ -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) |
