def reporter(f,x): try: if f(x) is None: return 'no problem' else: return 'generic' except ValueError: return 'Value' except E2OddException: return 'E2Odd' except E2Exception: return 'E2'