projects
/
python_utils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move TimeoutError to central exceptions file.
[python_utils.git]
/
exceptions.py
1
#!/usr/bin/env python3
2
3
class PreconditionException(AssertionError):
4
pass
5
6
7
class PostconditionException(AssertionError):
8
pass
9
10
11
class TimeoutError(Exception):
12
def __init__(self, value: str = "Timed out"):
13
self.value = value
14
15
def __str__(self):
16
return repr(self.value)