Getting the exit code in a SystemExit rescue block?

Assume that I have the following code:

begin
   exit(42)
rescue SystemExit => e

     p e.status

···

   # How do I find out the argument passed to exit() here?
end

"Mehr, Assaph (Assaph)" <assaph@avaya.com> writes:

Assume that I have the following code:

begin
   exit(42)
rescue SystemExit => e

     p e.status

Aha! Thank you very much.

···

   # How do I find out the argument passed to exit() here?
end

--
Lloyd Zusman
ljz@asfast.com
God bless you.