From e0973abee4c917127169795a56fd9c5c5412913c Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Fri, 23 Apr 2021 17:13:11 -0700 Subject: Move TimeoutError to central exceptions file. --- exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'exceptions.py') 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) -- cgit v1.3