I would like to unwind the stack to an arbitrary level when catch
/try
is not available (i.e., the code to which I'm unwinding is out of my control). Is this possible?
For example, in testing, I would like to have my tests call a method that checks for prerequisites, and unwinds to the caller of the test if those prereqs aren't met (resume at caller[1]
). Since the test harness is out of my control, I can't set up a catch
block at the appropriate place.