diff options
| author | Scott Gasch <[email protected]> | 2021-04-23 17:13:11 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-04-23 17:13:11 -0700 |
| commit | e0973abee4c917127169795a56fd9c5c5412913c (patch) | |
| tree | b495199b55ca09848325db342da29819eddcdd25 /exceptions.py | |
| parent | bf508f86e1576736d18cab08edbca834456045ee (diff) | |
Move TimeoutError to central exceptions file.
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) |
