Exceptions: A metaphor

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:08 PM on 2/13/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Exception

An event that occurs during the execution of a program that disrupts the normal flow of instructions.

2
New cards

Handling Exceptions

The process of responding to exceptions that occur during program execution, allowing the program to continue running or to fail gracefully.

3
New cards

Calling Stack

A data structure that keeps track of active subroutines or methods in a program, allowing for method calls and returns.

4
New cards

Welding Metaphor

A metaphor used to illustrate how exceptions are processed in programming - welding represents trying to perform a task, while problems represent exceptions that may interrupt the process.

5
New cards

Supervisor in Exception Handling

A metaphorical representation of the method that takes responsibility for handling exceptions that a called method cannot manage.

6
New cards

Pass an Exception

The action of passing an exception to a higher-level method or module for handling when the current context cannot address it.

7
New cards

Bubble Up

The process whereby an exception is passed up the calling stack until it is handled or causes the program to crash.

8
New cards

Plan for Exceptions

Preparation made in code to anticipate potential exceptions and manage them appropriately.

9
New cards

Unplanned Exception

An exception that occurs that has not been prepared for or anticipated in the code, requiring a different approach for handling.

10
New cards

Try-Except Block

A programming construct used in languages like Python to catch and handle exceptions that occur within a block of code.