1996-12-10 19:20:09 -04:00
|
|
|
test_exceptions
|
|
|
|
5. Built-in exceptions
|
|
|
|
AttributeError
|
|
|
|
EOFError
|
|
|
|
IOError
|
|
|
|
ImportError
|
|
|
|
IndexError
|
|
|
|
KeyError
|
|
|
|
KeyboardInterrupt
|
|
|
|
(not testable in a script)
|
|
|
|
MemoryError
|
|
|
|
(not safe to test)
|
|
|
|
NameError
|
|
|
|
OverflowError
|
|
|
|
RuntimeError
|
|
|
|
(not used any more?)
|
|
|
|
SyntaxError
|
|
|
|
SystemError
|
|
|
|
(hard to reproduce)
|
|
|
|
SystemExit
|
|
|
|
TypeError
|
|
|
|
ValueError
|
|
|
|
ZeroDivisionError
|
2000-05-25 20:16:54 -03:00
|
|
|
Exception
|