On this page
Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class · Ruby 4.1
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"