L
Lloyd Zusman
Assume that I have the following code:
begin
exit(42)
rescue SystemExit => e
# How do I find out the argument passed to exit() here?
end
Inside of the `rescue' block, is there any way for me to find out the
argument that was passed to exit()? In this example, I'd want to know
that `42' was passed.
Thanks in advance.
begin
exit(42)
rescue SystemExit => e
# How do I find out the argument passed to exit() here?
end
Inside of the `rescue' block, is there any way for me to find out the
argument that was passed to exit()? In this example, I'd want to know
that `42' was passed.
Thanks in advance.