Common Exception Types Flashcards Preview

Python > Common Exception Types > Flashcards

Flashcards in Common Exception Types Deck (7)
Loading flashcards...
1
Q

Base class for all exceptions

A

Exception

2
Q

Stops the next( ) iterator from continuing

A

StopIteration

3
Q

Raised by the sys.exit( ) function

A

SystemExit

4
Q

Occurs for numeric calculations

A

ArithmeticError

5
Q

Division or Modulo by zero

A

ZeroDivisonError

6
Q

Applies an operation to mismatched data types

A

TypeError

7
Q

Generated by programmer/user

A

KeyboardInterrupt