Exceptions and the Call Stack

Learn how exceptions are thrown in a call stack.

The call stack

Imagine that we have a program and that in it, we have a main function. This function is calling another function that calls another function, and so on. We’ll have something like the following:

Get hands-on with 1400+ tech skills courses.