#!/usr/bin/env python3 # This module is commonly used by others in here and should avoid # taking any unnecessary dependencies back on them. class PreconditionException(AssertionError): pass class PostconditionException(AssertionError): pass class TimeoutError(Exception): def __init__(self, value: str = "Timed out"): self.value = value def __str__(self): return repr(self.value)