Created
October 22, 2022 04:56
-
-
Save kairulla/cbb1b8fa1a72c8145dfd4d99da17413e to your computer and use it in GitHub Desktop.
все исключения дли python (all except for python)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
except BrokenPipeError: | |
print("BrokenPipeError") | |
except ConnectionAbortedError: | |
print("ConnectionAbortedError") | |
except ConnectionRefusedError: | |
print("ConnectionRefusedError") | |
except ConnectionResetError: | |
print("ConnectionResetError") | |
except TabError: | |
print("TabError") | |
except FloatingPointError: | |
print("FloatingPointError") | |
except OverflowError: | |
print("OverflowError") | |
except ZeroDivisionError: | |
print("ZeroDivisionError") | |
except IndexError: | |
print("IndexError") | |
except KeyError: | |
print("KeyError") | |
except UnboundLocalError: | |
print("UnboundLocalError") | |
except BlockingIOError: | |
print("BlockingIOError") | |
except ChildProcessError: | |
print("ChildProcessError") | |
except ConnectionError: | |
print("ConnectionError") | |
except FileExistsError: | |
print("FileExistsError") | |
except FileNotFoundError: | |
print("FileNotFoundError") | |
except InterruptedError: | |
print("InterruptedError") | |
except IsADirectoryError: | |
print("IsADirectoryError") | |
except NotADirectoryError: | |
print("NotADirectoryError") | |
except PermissionError: | |
print("PermissionError") | |
except ProcessLookupError: | |
print("ProcessLookupError") | |
except TimeoutError: | |
print("TimeoutError") | |
except IndentationError: | |
print("IndentationError") | |
except UnicodeEncodeError: | |
print("UnicodeEncodeError") | |
except UnicodeDecodeError: | |
print("UnicodeDecodeError") | |
except UnicodeTranslateError: | |
print("UnicodeTranslateError") | |
except StopIteration: | |
print("StopIteration") | |
except ArithmeticError: | |
print("ArithmeticError") | |
except AssertionError: | |
print("AssertionError") | |
except AttributeError: | |
print("AttributeError") | |
except BufferError: | |
print("BufferError") | |
except EOFError: | |
print("EOFError") | |
except ImportError: | |
print("ImportError") | |
except LookupError: | |
print("LookupError") | |
except MemoryError: | |
print("MemoryError") | |
except NameError: | |
print("NameError") | |
except OSError: | |
print("OSError") | |
except ReferenceError: | |
print("ReferenceError") | |
except RuntimeError: | |
print("RuntimeError") | |
except NotImplementedError: | |
print("NotImplementedError") | |
except SyntaxError: | |
print("SyntaxError") | |
except SystemError: | |
print("SystemError") | |
except TypeError: | |
print("TypeError") | |
except ValueError: | |
print("ValueError") | |
except UnicodeError: | |
print("UnicodeError") | |
except Warning: | |
print("Warning") | |
except SystemExit: | |
print("SystemExit") | |
except KeyboardInterrupt: | |
print("KeyboardInterrupt") | |
except GeneratorExit: | |
print("GeneratorExit") | |
except Exception: | |
print("Exception") | |
except BaseException: | |
print("BaseException") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment