Ran black code formatter on everything.
[python_utils.git] / exceptions.py
1 #!/usr/bin/env python3
2
3 # This module is commonly used by others in here and should avoid
4 # taking any unnecessary dependencies back on them.
5
6
7 class PreconditionException(AssertionError):
8     pass
9
10
11 class PostconditionException(AssertionError):
12     pass
13
14
15 class TimeoutError(Exception):
16     def __init__(self, value: str = "Timed out"):
17         self.value = value
18
19     def __str__(self):
20         return repr(self.value)