Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Odd exception terminology "throwing up"

Not that it's of groundbreaking importance or anything, but I commonly see people refer to forwarding an exception out of a method to the caller as throwing "up," when technically it is being thrown downward in the call stack, right? Is this just some programmer humor or what? Or is the call stack envisioned as growing down?

like image 439
oldSkool Avatar asked Oct 31 '11 03:10

oldSkool


1 Answers

Stacks traditionally grow downward in memory, so call frames deeper on the stack are at higher addresses, so the exception moves "up" the stack.

like image 178
Raymond Chen Avatar answered Sep 20 '22 11:09

Raymond Chen