mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	 bf36409e2a
			
		
	
	
		bf36409e2a
		
	
	
	
	
		
			
			added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846.
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| BaseException
 | |
|  +-- SystemExit
 | |
|  +-- KeyboardInterrupt
 | |
|  +-- Exception
 | |
|       +-- GeneratorExit
 | |
|       +-- StopIteration
 | |
|       +-- StandardError
 | |
|       |    +-- ArithmeticError
 | |
|       |    |    +-- FloatingPointError
 | |
|       |    |    +-- OverflowError
 | |
|       |    |    +-- ZeroDivisionError
 | |
|       |    +-- AssertionError
 | |
|       |    +-- AttributeError
 | |
|       |    +-- EnvironmentError
 | |
|       |    |    +-- IOError
 | |
|       |    |    +-- OSError
 | |
|       |    |         +-- WindowsError (Windows)
 | |
|       |    +-- EOFError
 | |
|       |    +-- ImportError
 | |
|       |    +-- LookupError
 | |
|       |    |    +-- IndexError
 | |
|       |    |    +-- KeyError
 | |
|       |    +-- MemoryError
 | |
|       |    +-- NameError
 | |
|       |    |    +-- UnboundLocalError
 | |
|       |    +-- ReferenceError
 | |
|       |    +-- RuntimeError
 | |
|       |    |    +-- NotImplementedError
 | |
|       |    +-- SyntaxError
 | |
|       |    |    +-- IndentationError
 | |
|       |    |         +-- TabError
 | |
|       |    +-- SystemError
 | |
|       |    +-- TypeError
 | |
|       |    +-- ValueError
 | |
|       |    |    +-- UnicodeError
 | |
|       |    |         +-- UnicodeDecodeError
 | |
|       |    |         +-- UnicodeEncodeError
 | |
|       |    |         +-- UnicodeTranslateError
 | |
|       +-- Warning
 | |
|            +-- DeprecationWarning
 | |
|            +-- PendingDeprecationWarning
 | |
|            +-- RuntimeWarning
 | |
|            +-- SyntaxWarning
 | |
|            +-- UserWarning
 | |
|            +-- FutureWarning
 | |
| 	   +-- OverflowWarning [not generated by the interpreter]
 |