CSC 351 - Chapter 14 Flashcards
1
Q
Language Without Exception Handling
A
- when exception occurs, control goes to operating system and a message is displayed
- can still define, detect, raise and handle exceptions
2
Q
Language With Exception Handling
A
- programs can catch exceptions with the possibility of fixing the problem
3
Q
Exception
A
- unusual event detected by hardware or software that may require processing
4
Q
Exception Handling
A
- the special processing that may be required
- exceptions are bound to handlers by connecting the type of expression in the throw statement to the formal parameter in the catch
5
Q
Unhandled Exception
A
- propagated to the caller of the function in which it is raised
6
Q
Continuation
A
- after a handler completes execution, control flows to the first statement after the last handler in the sequence of handlers
7
Q
Assertion Statement
A
- statement in the program declaring a boolean expression regarding the current state
- if false, assertion error is thrown
8
Q
Event
A
- notification that something specific has occured
9
Q
Event Handler
A
- segment of code that is executed in response to an event