class InterpretationError(Exception): """Controlled rejection of a case, context or interpretation.""" def __init__(self, code: str): self.code = code super().__init__(code)