Re:Show HN: I built a Ruby gem that handles memoization with...
by JamesSwift on Tuesday April 22, 2025 @03:31PM
(#43765464)
I thought ruby would auto-wrap the original exception as long as you are raising from a rescue block (i.e. as long as $! is non-nil). So in that case you can just
raise "Failed to execute memoized method '#{method_name}'"
https://pablofernandez.tech/2014/02/05/wrapped-exceptions-in...