|
| 1 | +except Exception: |
| 2 | +except BaseException: |
| 3 | +except ArithmeticError: |
| 4 | +except BufferError: |
| 5 | +except LookupError: |
| 6 | +except AssertionError: |
| 7 | +except AttributeError: |
| 8 | +except EOFError: |
| 9 | +except FloatingPointError: |
| 10 | +except GeneratorExit: |
| 11 | +except ImportError: |
| 12 | +except ModuleNotFoundError: |
| 13 | +except IndexError: |
| 14 | +except KeyError: |
| 15 | +except KeyboardInterrupt: |
| 16 | +except MemoryError: |
| 17 | +except NameError: |
| 18 | +except NotImplementedError: |
| 19 | +except OSError([arg]): |
| 20 | +except OSError(errno, strerror[, filename[, winerror[, filename2]]]): |
| 21 | +except OverflowError: |
| 22 | +except RecursionError: |
| 23 | +except ReferenceError: |
| 24 | +except RuntimeError: |
| 25 | +except StopIteration: |
| 26 | +except StopAsyncIteration: |
| 27 | +except SyntaxError: |
| 28 | +except IndentationError: |
| 29 | +except TabError: |
| 30 | +except SystemError: |
| 31 | +except SystemExit: |
| 32 | +except TypeError: |
| 33 | +except UnboundLocalError: |
| 34 | +except UnicodeError: |
| 35 | +except UnicodeEncodeError: |
| 36 | +except UnicodeDecodeError: |
| 37 | +except UnicodeTranslateError: |
| 38 | +except ValueError: |
| 39 | +except ZeroDivisionError: |
| 40 | +except EnvironmentError: |
| 41 | +except IOError: |
| 42 | +except WindowsError: |
| 43 | +except BlockingIOError: |
| 44 | +except ChildProcessError: |
| 45 | +except ConnectionError: |
| 46 | +except BrokenPipeError: |
| 47 | +except ConnectionAbortedError: |
| 48 | +except ConnectionRefusedError: |
| 49 | +except ConnectionResetError: |
| 50 | +except FileExistsError: |
| 51 | +except FileNotFoundError: |
| 52 | +except InterruptedError: |
| 53 | +except IsADirectoryError: |
| 54 | +except NotADirectoryError: |
| 55 | +except PermissionError: |
| 56 | +except ProcessLookupError: |
| 57 | +except TimeoutError: |
| 58 | +except Warning: |
| 59 | +except UserWarning: |
| 60 | +except DeprecationWarning: |
| 61 | +except PendingDeprecationWarning: |
| 62 | +except SyntaxWarning: |
| 63 | +except RuntimeWarning: |
| 64 | +except FutureWarning: |
| 65 | +except ImportWarning: |
| 66 | +except UnicodeWarning: |
| 67 | +except BytesWarning: |
| 68 | +except ResourceWarning: |
| 69 | + |
| 70 | +try: |
| 71 | + pass |
| 72 | +except Execeptions: |
| 73 | + pass |
| 74 | +else: |
| 75 | + pass |
| 76 | +finally: |
| 77 | + pass |
| 78 | + |
| 79 | +try: |
| 80 | + f=open('Car_game.py') |
| 81 | +except FileNotFoundError as e: |
| 82 | + print(e) |
| 83 | +except Exception as e: |
| 84 | + print(e) |
| 85 | +else: |
| 86 | + print(f.read()) |
| 87 | + f.close() |
| 88 | +finally: |
| 89 | + print('Executing Finally...') |
0 commit comments