On this page
End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class · Ruby 3.0
UncaughtThrowError
Raised when throw is called with a tag which does not have corresponding catch block.
Example
throw "foo", "bar"
raises the exception:
UncaughtThrowError: uncaught throw "foo"